|
|
@@ -469,6 +469,7 @@ public class Task {
|
|
|
liveDatas.forEach(liveData ->{
|
|
|
|
|
|
Long resultLikeCount = getAsLong(redisCache, "live:like:" + liveData.getLiveId());
|
|
|
+ resultLikeCount = resultLikeCount > 0L ? resultLikeCount : liveData.getLikes();
|
|
|
redisCache.setCacheObject("live:like:" + liveData.getLiveId(), resultLikeCount.intValue());
|
|
|
liveData.setLikes(
|
|
|
resultLikeCount
|