作者 赵彬吉

update

@@ -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);