From 1fa2e838229de4e99f312e2386c74c32a2ede501 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Tue, 12 Nov 2024 11:19:40 +0800 Subject: [PATCH] feat : oss --- app/Exception/Handler/ErrExceptionHandler.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Exception/Handler/ErrExceptionHandler.php b/app/Exception/Handler/ErrExceptionHandler.php index c9e5042..862e13a 100644 --- a/app/Exception/Handler/ErrExceptionHandler.php +++ b/app/Exception/Handler/ErrExceptionHandler.php @@ -38,8 +38,7 @@ class ErrExceptionHandler extends ExceptionHandler $result = match ($urlArr[0]) { 'api' => $this->apiReturn->error($throwable->getMessage(),$throwable->getCode()), - 'admin' => $this->adminReturn->error($throwable->getMessage(),$throwable->getCode()), - 'common' => $this->adminReturn->error($throwable->getMessage(),$throwable->getCode()), + 'admin', 'common' => $this->adminReturn->error($throwable->getMessage(),$throwable->getCode()), default => null, };