|
@@ -39,8 +39,8 @@ class UploadController extends Controller
|
|
}catch (\Exception $exception){
|
|
}catch (\Exception $exception){
|
|
Log::error('upload-exception:'.$exception->getMessage());
|
|
Log::error('upload-exception:'.$exception->getMessage());
|
|
return $this->jsonError('图片上传失败,请重试');
|
|
return $this->jsonError('图片上传失败,请重试');
|
|
- }catch (FatalThrowableError $fatalThrowableError){
|
|
|
|
- Log::error('upload-error:'.$fatalThrowableError->getMessage());
|
|
|
|
|
|
+ }catch (\Throwable $throwable){
|
|
|
|
+ Log::error('upload-error:'.$throwable->getMessage());
|
|
return $this->jsonError('图片上传失败,请重试');
|
|
return $this->jsonError('图片上传失败,请重试');
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|