mirror of
https://github.com/zongzibinbin/MallChat.git
synced 2026-06-18 19:57:03 +00:00
1.记录微信消息
2.重复上线问题解决
This commit is contained in:
@@ -53,6 +53,11 @@ public class UserCache {
|
||||
RedisUtils.zAdd(onlineKey, uid, optTime.getTime());
|
||||
}
|
||||
|
||||
public boolean isOnline(Long uid) {
|
||||
String onlineKey = RedisKey.getKey(RedisKey.ONLINE_UID_ZET);
|
||||
return RedisUtils.zIsMember(onlineKey, uid);
|
||||
}
|
||||
|
||||
//用户下线
|
||||
public void offline(Long uid, Date optTime) {
|
||||
String onlineKey = RedisKey.getKey(RedisKey.ONLINE_UID_ZET);
|
||||
|
||||
Reference in New Issue
Block a user