feat: order

This commit is contained in:
2025-01-22 17:58:36 +08:00
parent 911c4fcf70
commit b2f96de226
7 changed files with 287 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ class ErrExceptionHandler extends ExceptionHandler
{
if ($throwable instanceof ErrException) {
$urlArr = explode('/',$this->request->path());
var_dump($throwable);
$result = match ($urlArr[0]) {
'api' => $this->apiReturn->error($throwable->getMessage(),$throwable->getCode()),
'admin', 'common' => $this->adminReturn->error($throwable->getMessage(),$throwable->getCode()),