wupengfei 2 years ago
parent
commit
16725a91ad
2 changed files with 1 additions and 2 deletions
  1. 0 1
      .idea/workspace.xml
  2. 1 1
      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" />

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

@@ -96,7 +96,7 @@ class Upload extends Base
         var_dump($file->getInfo());
         $headers = [];
         $headers[] = 'Content-Type: application/x-www-form-urlencoded';
-        $res = pdfCurl($file->getInfo()['name']);
+        $res = pdfCurl('https://gaoyixia.oss-cn-hangzhou.aliyuncs.com/0e94cef1318fc012/534df05136979309.pptx');
         //var_dump(curlPost('http://101.132.128.55:9999/v1/pdf/upload',$_FILES['file']),$_FILES);
         var_dump($res);