|
...
|
...
|
@@ -379,7 +379,7 @@ class ImageController extends Controller |
|
|
|
}else{
|
|
|
|
//TODO::设置上传文件大小(B端上传)
|
|
|
|
$max = config('upload.default_b_image')['size']['max'];
|
|
|
|
if(in_array($files)){
|
|
|
|
if(is_array($files)){
|
|
|
|
foreach ($files as $file){
|
|
|
|
if ($file->getSize() > $max) {
|
|
|
|
return $this->response('图片最大为500K',Code::SYSTEM_ERROR);
|
...
|
...
|
|