登录部分
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user