作者 lyh

gx

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