fixed:云上传配置无法生效

This commit is contained in:
JaguarJack
2020-11-19 09:42:54 +08:00
parent e4a5ae0c37
commit 78e782dd01
10 changed files with 503 additions and 15 deletions

View File

@@ -15,6 +15,7 @@ use catcher\base\CatchController;
use catcher\base\CatchRequest;
use catcher\CatchResponse;
use catcher\CatchUpload;
use catcher\exceptions\FailedException;
class Upload extends CatchController
{
@@ -37,6 +38,10 @@ class Upload extends CatchController
{
$images = $request->file();
if (!$images) {
throw new FailedException('请选择图片上传');
}
return CatchResponse::success($upload->checkImages($images)->multiUpload($images['image']));
}