diff --git a/catch/permissions/AuthTokenMiddleware.php b/catch/permissions/AuthTokenMiddleware.php index 16ad861..1f7960d 100644 --- a/catch/permissions/AuthTokenMiddleware.php +++ b/catch/permissions/AuthTokenMiddleware.php @@ -17,7 +17,7 @@ class AuthTokenMiddleware extends Middleware JWTAuth::auth(); } catch (\Exception $e) { if ($e instanceof TokenExpiredException) { - throw new FailedException('token 过期', Code::LOST_LOGIN); + throw new FailedException('token 过期', Code::LOGIN_EXPIRED); } if ($e instanceof TokenBlacklistException) { throw new FailedException('token 被加入黑名单', Code::LOST_LOGIN);