正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -379,7 +379,7 @@ class ImageController extends Controller | @@ -379,7 +379,7 @@ class ImageController extends Controller | ||
| 379 | }else{ | 379 | }else{ |
| 380 | //TODO::设置上传文件大小(B端上传) | 380 | //TODO::设置上传文件大小(B端上传) |
| 381 | $max = config('upload.default_b_image')['size']['max']; | 381 | $max = config('upload.default_b_image')['size']['max']; |
| 382 | - if(in_array($files)){ | 382 | + if(is_array($files)){ |
| 383 | foreach ($files as $file){ | 383 | foreach ($files as $file){ |
| 384 | if ($file->getSize() > $max) { | 384 | if ($file->getSize() > $max) { |
| 385 | return $this->response('图片最大为500K',Code::SYSTEM_ERROR); | 385 | return $this->response('图片最大为500K',Code::SYSTEM_ERROR); |
-
请 注册 或 登录 后发表评论