From 2361be7d71921582ba576d004d566a5620ad5fd3 Mon Sep 17 00:00:00 2001 From: yanwenwu Date: Mon, 18 May 2020 13:42:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=87=E6=9C=9Ftoken?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/permissions/AuthTokenMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);