Browse Source

Update Upload.php

邹景立 3 years ago
parent
commit
f8a4998b7e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/admin/controller/api/Upload.php

+ 1 - 2
app/admin/controller/api/Upload.php

@@ -25,7 +25,6 @@ use think\admin\storage\TxcosStorage;
 use think\exception\HttpResponseException;
 use think\file\UploadedFile;
 use think\Response;
-use think\response\Json;
 
 /**
  * 文件上传接口
@@ -102,7 +101,7 @@ class Upload extends Controller
      * @throws \think\db\exception\DbException
      * @throws \think\db\exception\ModelNotFoundException
      */
-    public function file(): Json
+    public function file()
     {
         if (!($file = $this->getFile())->isValid()) {
             $this->error('文件上传异常,文件过大或未上传!');