修改登录tokne
This commit is contained in:
@@ -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验证
|
||||||
|
|||||||
Reference in New Issue
Block a user