wupengfei 2 years ago
parent
commit
87d201793e
2 changed files with 1 additions and 3 deletions
  1. 0 2
      .idea/workspace.xml
  2. 1 1
      application/api/controller/Upload.php

+ 0 - 2
.idea/workspace.xml

@@ -4,8 +4,6 @@
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/api/controller/Upload.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Upload.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/common.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/common.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/nutrition/view/one_datum/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/view/one_datum/form.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />

+ 1 - 1
application/api/controller/Upload.php

@@ -95,7 +95,7 @@ class Upload extends Base
         move_uploaded_file($file_info['tmp_name'],$save_path);
         $res = pdfCurl($save_path);
         unlink($save_path);
-        if(!empty($res) && $res['code'] == 1) $this->success('上传成功','http://gaoyixia.oss-cn-hangzhou.aliyuncs.com'.$res['data']);
+        if(!empty($res) && $res['code'] == 1) $this->success('上传成功','http://gaoyixia.oss-cn-hangzhou.aliyuncs.com/'.$res['data']);
         $this->error('上传失败');
     }