wupengfei 2 anos atrás
pai
commit
cf6979567c
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      application/api/controller/Upload.php

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

@@ -93,10 +93,10 @@ class Upload extends Base
         if ($file->checkExt('php,sh')) {
             $this->error('可执行文件禁止上传到本地服务器!');
         }
-        var_dump($file->getRealPath());
+        var_dump($file->getPath());
         $headers = [];
         $headers[] = 'Content-Type: application/x-www-form-urlencoded';
-        $res = requestPost('http://101.132.128.55:9999/v1/pdf/upload',['file'=>$file->getRealPath()],$headers);
+        $res = requestPost('http://101.132.128.55:9999/v1/pdf/upload',['file'=>$file->getPath()],$headers);
         var_dump($res);