liujc il y a 1 an
Parent
commit
73982a4037

+ 4 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/LiveRoomServiceImpl.java

@@ -2163,7 +2163,10 @@ public class LiveRoomServiceImpl extends ServiceImpl<LiveRoomDao, LiveRoom> impl
 
         // 设置进入时间
         RBucket<Long> userStateTimeCache = redissonClient.getBucket(LIVE_USER_LAST_TIME.replace(USER_ID, userId.toString()));
-        userStateTimeCache.set(new Date().getTime(), 60L, TimeUnit.MINUTES);
+        long time = new Date().getTime();
+        log.info(" cacheTime: {}, userStateTime: {}", userStateTimeCache.get(), time);
+        userStateTimeCache.set(time, 60L, TimeUnit.MINUTES);
+
         LiveRoomWrapper.LiveRoomVo liveRoomVo = queryRoomInfo(roomUid);
 
         //记录用户当前房间uid