From fa197cdcef2d17314a7600572f823d8639be6825 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Sun, 27 Oct 2024 00:36:01 +0800 Subject: [PATCH] fix: throw change --- app/Exception/Handler/AdminExceptionHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();