Commit e2be3e7bc8313f0ba91d38f1ac0f1120a89fa2ea

Authored by 王明元
1 parent 79d76579

2022年5月26日17:03:18

src/main/java/cn/fw/freya/task/DataCaptureTask.java
@@ -134,11 +134,9 @@ public class DataCaptureTask { @@ -134,11 +134,9 @@ public class DataCaptureTask {
134 if (flag) { 134 if (flag) {
135 final ArrayList<LivePool> livePools = new ArrayList<>(); 135 final ArrayList<LivePool> livePools = new ArrayList<>();
136 for (LivePool item : list) {// 该人有一次成功就证明已经处理过该人的所有直播了, 将他所有直播进行标记 136 for (LivePool item : list) {// 该人有一次成功就证明已经处理过该人的所有直播了, 将他所有直播进行标记
137 - livePools.add(LivePool.builder()  
138 - .id(item.getId())  
139 - .getPlaybackFailTimes(-1)  
140 - .build()  
141 - ); 137 + final LivePool livePool = PublicUtil.copy(item, LivePool.class);// 对象拷贝
  138 + livePool.setGetPlaybackFailTimes(-1);
  139 + livePools.add(livePool);
142 } 140 }
143 livePoolDao.saveAll(livePools); 141 livePoolDao.saveAll(livePools);
144 publisher.publishEvent(account);// 发布事件 142 publisher.publishEvent(account);// 发布事件