feat : exception

This commit is contained in:
2025-03-07 17:44:16 +08:00
parent 4358491905
commit 8fbdc65eaa
2 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ class ErrExceptionHandler extends ExceptionHandler
$urlArr = explode('/',$this->request->path());
$result = match ($urlArr[0]) {
'api' => $this->apiReturn->error($throwable->getMessage(),$throwable->getCode()),
'admin', 'common' => $this->adminReturn->error($throwable->getMessage(),$throwable->getCode()),
'admin', 'common', 'web' => $this->adminReturn->error($throwable->getMessage(),$throwable->getCode()),
default => null,
};