diff --git a/app/Exception/Handler/AdminExceptionHandler.php b/app/Exception/Handler/AdminExceptionHandler.php index d27e3dc..9dc8bae 100644 --- a/app/Exception/Handler/AdminExceptionHandler.php +++ b/app/Exception/Handler/AdminExceptionHandler.php @@ -24,7 +24,7 @@ class AdminExceptionHandler extends ExceptionHandler public function handle(Throwable $throwable, ResponseInterface $response): ResponseInterface { if ($throwable instanceof AdminException) { - $result = $this->return->error($throwable->getMessage(),[],$throwable->getCode()); + $result = $this->return->error($throwable->getMessage(),$throwable->getCode()); // 阻止异常冒泡 $this->stopPropagation();