Commit a5a9f9c6 by Future

上线、离线日志补充

parent 4e9d4a84
......@@ -41,7 +41,8 @@ public class UserStateCacheManager extends UserStateListener {
String[] split = platformAndIp.split(RedisUtils.SPLIT);
String innerPlatform = split[0];
if(innerPlatform.equals(String.valueOf(platform))) {
// redisUtils.removeForSet(getUserStateCacheKey(clientId), platformAndIp);
log.info("ws用户上线删除旧的重复的platform redis key: {}, value: {}, uid: {}, clientId: {}", getUserStateCacheKey(clientId), platformAndIp, longChannelId, clientId);
redisUtils.removeForSet(getUserStateCacheKey(clientId), platformAndIp);
}
}
......@@ -53,7 +54,7 @@ public class UserStateCacheManager extends UserStateListener {
String key = getUserStateCacheKey(clientId);
String value = platform + RedisUtils.SPLIT + GetIpUtils.getlanIp();
log.info("ws用户离线删除redis key: {}, value: {}, uid: {}, clientId: {}", key, value, longChannelId, clientId);
// redisUtils.removeForSet(key, value);
redisUtils.removeForSet(key, value);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment