修改登录tokne

This commit is contained in:
wucongxing 2023-05-18 14:58:12 +08:00
parent ca6351ca2e
commit d4473c259a

View File

@ -81,7 +81,7 @@ class AuthMiddleware implements MiddlewareInterface
$res = $redis->get('jwt_black_' . $token); $res = $redis->get('jwt_black_' . $token);
if ($res && time() >= $res) { if ($res && time() >= $res) {
// token存在黑名单中 // token存在黑名单中
return $this->response->json(fail(HttpEnumCode::HTTP_PROHIBIT)); return $this->response->json(fail(HttpEnumCode::TOKEN_ERROR));
} }
// jwt验证 // jwt验证