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验证