正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
| @@ -112,8 +112,7 @@ class Handler extends ExceptionHandler | @@ -112,8 +112,7 @@ class Handler extends ExceptionHandler | ||
| 112 | }elseif ($exception instanceof BsideGlobalException) { | 112 | }elseif ($exception instanceof BsideGlobalException) { |
| 113 | $code = $exception->getCode(); | 113 | $code = $exception->getCode(); |
| 114 | } elseif ($exception instanceof ValidationException) { | 114 | } elseif ($exception instanceof ValidationException) { |
| 115 | -// $code = Code::USER_PARAMS_ERROE(); | ||
| 116 | - $code = $exception->getCode(); | 115 | + $code = Code::USER_PARAMS_ERROE(); |
| 117 | $message = Arr::first(Arr::first($exception->errors())); | 116 | $message = Arr::first(Arr::first($exception->errors())); |
| 118 | } elseif ($exception instanceof NotFoundHttpException || $exception instanceof MethodNotAllowedHttpException) { | 117 | } elseif ($exception instanceof NotFoundHttpException || $exception instanceof MethodNotAllowedHttpException) { |
| 119 | return response('404 Not Found', 404); | 118 | return response('404 Not Found', 404); |
-
请 注册 或 登录 后发表评论