From 0c39f5388d95dbc41c47285a8c2dfda57a019d5b Mon Sep 17 00:00:00 2001 From: xyc <jc_xiong@hotmail.com> Date: 星期三, 08 一月 2025 08:47:49 +0800 Subject: [PATCH] 修改:“可修设备可靠度为1”通过给算法包传递参数固定为1、type为fixed的failure_model来实现。 --- web/public/SVGOrigin/Method-Draw-master/method-draw/extensions/fileopen.php | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/public/SVGOrigin/Method-Draw-master/method-draw/extensions/fileopen.php b/web/public/SVGOrigin/Method-Draw-master/method-draw/extensions/fileopen.php index 8aad827..7b44a5c 100644 --- a/web/public/SVGOrigin/Method-Draw-master/method-draw/extensions/fileopen.php +++ b/web/public/SVGOrigin/Method-Draw-master/method-draw/extensions/fileopen.php @@ -11,15 +11,15 @@ */ // Very minimal PHP file, all we do is Base64 encode the uploaded file and // return it to the editor - + $file = $_FILES['svg_file']['tmp_name']; - + $output = file_get_contents($file); - + $type = $_REQUEST['type']; - + $prefix = ''; - + // Make Data URL prefix for import image if($type == 'import_img') { $info = getimagesize($file); -- Gitblit v1.9.1