From ee75d022631ae3bfd2acebac5e58467cbe694127 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Mon, 11 Sep 2023 18:58:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0apk=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/merchant/Common.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/controller/merchant/Common.php b/app/controller/merchant/Common.php index d3307200..c26e5e74 100644 --- a/app/controller/merchant/Common.php +++ b/app/controller/merchant/Common.php @@ -278,10 +278,9 @@ class Common extends BaseController $file = $this->request->file('file'); if (!$file) return app('json')->fail('请上传文件'); - // validate(["file|文件" => [ - // 'fileSize' => config('upload.filesize'), - // 'fileExt' => 'apk,ipa' - // ]])->check(['file' => $file]); + validate(["file|文件" => [ + 'fileSize' => config('upload.filesize') + ]])->check(['file' => $file]); $upload = UploadService::create(); $data = $upload->to('app')->validate([])->move('file'); if ($data === false) {