This commit is contained in:
wangchen147
2024-01-25 17:48:14 +08:00
parent 34671d6c3d
commit 026d5fa334
840 changed files with 3381 additions and 2830 deletions

View File

@@ -102,7 +102,7 @@ class ExceptionHandle extends Handle
return fail($e->getMessage());
} else if($e instanceof UnexpectedValueException){
return fail($e->getMessage(), [], 401);
}else if($e instanceof AuthException || $e instanceof AdminException){
}else if($e instanceof AuthException){
return fail($e->getMessage(), [], $e->getCode() ?: 400);
}else if($e instanceof ServerException){
return fail($e->getMessage(), http_code:$e->getCode());