|
|
@@ -62,10 +62,11 @@ public class LiveCompletionPointsTask {
|
|
|
|
|
|
// 使用Hash结构获取该直播间所有用户的观看时长
|
|
|
String hashKey = "live:watch:duration:hash:" + liveId;
|
|
|
- Map<Object, Object> userDurations = redisCache.redisTemplate.opsForHash().entries(hashKey);
|
|
|
+ Map<Object, Object> userDurations = redisCache.hashEntries(hashKey);
|
|
|
|
|
|
if (userDurations == null || userDurations.isEmpty()) {
|
|
|
- log.debug("直播间没有观看时长数据, liveId={}, liveName={}", liveId, live.getLiveName());
|
|
|
+ log.warn("直播间没有观看时长数据, liveId={}, liveName={}, Redis Key: {}, userDurations={}",
|
|
|
+ liveId, live.getLiveName(), hashKey, userDurations);
|
|
|
continue;
|
|
|
}
|
|
|
|