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

+ 0 - 1
.idea/workspace.xml

@@ -2,7 +2,6 @@
 <project version="4">
   <component name="ChangeListManager">
     <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" />
     </list>
     <option name="SHOW_DIALOG" value="false" />

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

@@ -76,7 +76,7 @@ class Upload extends Base
      * @title 文件上传
      * @desc 个人信息
      * @author qc
-     * @url /api/upload/upload
+     * @url /api/upload/pdfUpload
      * @method GET||POST
      * @tag
      * @param name:file require:1 desc:文件名
@@ -93,7 +93,7 @@ class Upload extends Base
         if ($file->checkExt('php,sh')) {
             $this->error('可执行文件禁止上传到本地服务器!');
         }
-        $res = requestPost('http://101.132.128.55:9999/v1/pdf/upload',$file);
+        $res = requestPost('http://101.132.128.55:9999/v1/pdf/upload',json_encode($file));
         var_dump($res);