登录部分

This commit is contained in:
2024-06-05 09:25:53 +08:00
parent fefb4c3a85
commit b7ce764bdb
4 changed files with 28 additions and 10 deletions

View File

@@ -108,6 +108,9 @@ public class LoginFilter implements Filter {
}else if(environment.equals("wx")){
//获取当前登录人的用户id
String openId = TokenUtil.parseParamFromToken(token).getString("openId");
if(StringUtils.isBlank(openId)){
openId = TokenUtil.parseParamFromToken(token).getString("userId");
}
tokenKey=RedisCst.ONLINE_USER.concat(openId);
}
message = redisUtil.getMessage(tokenKey);