|
@@ -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
|