From 9cf243f7ee4b32ece509a213377889e116a46c7c Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 6 Dec 2023 11:33:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=AA=8C=E8=AF=81=E6=9B=B4?= =?UTF-8?q?=E6=98=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/merchant/store/StoreImport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/merchant/store/StoreImport.php b/app/controller/merchant/store/StoreImport.php index 7947b8f1..4eb82a7e 100644 --- a/app/controller/merchant/store/StoreImport.php +++ b/app/controller/merchant/store/StoreImport.php @@ -87,7 +87,7 @@ class StoreImport extends BaseController $file = $this->request->file('file'); if (!$file) return app('json')->fail('请上传EXCEL文件'); $file = is_array($file) ? $file[0] : $file; - validate(["file|文件" => ['fileExt' => 'xlsx,xls',]])->check(['file' => $file]); + validate(["file|文件" => ['fileExt' => 'xlsx',]])->check(['file' => $file]); $upload = UploadService::create(1); $ret = $upload->to('excel')->move('file'); if ($ret === false) return app('json')->fail($upload->getError());