|
|
@@ -102,6 +102,7 @@ public class Task {
|
|
|
if (live.getFinishTime() == null) {
|
|
|
if (now.isAfter(live.getStartTime().minusSeconds(2L))){
|
|
|
if(live.getStatus() != 2){
|
|
|
+ redisUtil.zSetRemove(LiveKeysConstant.LIVE_HOME_PAGE_LIST, JSON.toJSONString(live));
|
|
|
live.setStatus(2);
|
|
|
startLiveList.add(live);
|
|
|
liveList.add(live);
|
|
|
@@ -116,6 +117,7 @@ public class Task {
|
|
|
} else {
|
|
|
if (now.isAfter(live.getStartTime().minusSeconds(2L)) && now.isBefore(live.getFinishTime())) {
|
|
|
if(live.getStatus() != 2){
|
|
|
+ redisUtil.zSetRemove(LiveKeysConstant.LIVE_HOME_PAGE_LIST, JSON.toJSONString(live));
|
|
|
startLiveList.add(live);
|
|
|
live.setStatus(2);
|
|
|
liveList.add(live);
|