diff --git a/src/Support/Traits/ExceptionTrait.php b/src/Support/Traits/ExceptionTrait.php index a503f3f..fe9a5d8 100644 --- a/src/Support/Traits/ExceptionTrait.php +++ b/src/Support/Traits/ExceptionTrait.php @@ -36,7 +36,9 @@ protected function prepareJsonResponse($request, $e) // 或者是 ajax 请求,header 中包含 X-Requested-With:XMLHttpRequest; $exceptionConfig = Config::get('response.exception.'.get_class($e)); - if ($exceptionConfig === false) return parent::prepareJsonResponse($request, $e); + if ($exceptionConfig === false) { + return parent::prepareJsonResponse($request, $e); + } /** @var \Illuminate\Foundation\Exceptions\Handler $this */ $isHttpException = $this->isHttpException($e);