From d4473c259ab1a474aac41c5a9ab0aea34f4167ba Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 18 May 2023 14:58:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95tokne?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Middleware/Auth/AuthMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Middleware/Auth/AuthMiddleware.php b/app/Middleware/Auth/AuthMiddleware.php index 1959694..5263fd1 100644 --- a/app/Middleware/Auth/AuthMiddleware.php +++ b/app/Middleware/Auth/AuthMiddleware.php @@ -81,7 +81,7 @@ class AuthMiddleware implements MiddlewareInterface $res = $redis->get('jwt_black_' . $token); if ($res && time() >= $res) { // token存在黑名单中 - return $this->response->json(fail(HttpEnumCode::HTTP_PROHIBIT)); + return $this->response->json(fail(HttpEnumCode::TOKEN_ERROR)); } // jwt验证