作者 赵彬吉

update

... ... @@ -112,8 +112,7 @@ class Handler extends ExceptionHandler
}elseif ($exception instanceof BsideGlobalException) {
$code = $exception->getCode();
} elseif ($exception instanceof ValidationException) {
// $code = Code::USER_PARAMS_ERROE();
$code = $exception->getCode();
$code = Code::USER_PARAMS_ERROE();
$message = Arr::first(Arr::first($exception->errors()));
} elseif ($exception instanceof NotFoundHttpException || $exception instanceof MethodNotAllowedHttpException) {
return response('404 Not Found', 404);
... ...