mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-09-04 03:37:06 +00:00
退出登录接口加入白名单&修改过期提示
This commit is contained in:
@@ -57,7 +57,7 @@ public class AuthFilter implements GlobalFilter, Ordered
|
||||
String userStr = sops.get(CacheConstants.LOGIN_TOKEN_KEY + token);
|
||||
if (StringUtils.isNull(userStr))
|
||||
{
|
||||
return setUnauthorizedResponse(exchange, "令牌验证失败");
|
||||
return setUnauthorizedResponse(exchange, "登录状态已过期");
|
||||
}
|
||||
JSONObject obj = JSONObject.parseObject(userStr);
|
||||
String userid = obj.getString("userid");
|
||||
|
Reference in New Issue
Block a user