作者 lyh

gx

... ... @@ -152,6 +152,7 @@ class ImageController extends Controller
'image.required'=>'图片必须填写',
]);
$files = $this->request->file('image');
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($files, true) . PHP_EOL, FILE_APPEND);
if (empty($files)) {
$this->response('没有上传的文件!', Code::USER_ERROR);
}
... ...