Browse Source

分享直播间显示预告直播间;定时任务修改更新时间

yuhongqi 4 days ago
parent
commit
b1b7fe13f7

+ 2 - 0
fs-live-socket/src/main/java/com/fs/live/websocket/service/WebSocketServer.java

@@ -442,12 +442,14 @@ public class WebSocketServer {
                 LiveRedConf liveRedConf = JSON.parseObject(task.getContent(), LiveRedConf.class);
                 liveRedConf.setRedStatus(1L);
                 liveRedConf.setUpdateTime( now);
+                msg.setData(JSON.toJSONString(liveRedConf));
                 liveRedConfService.updateLiveRedConf(liveRedConf);
             }else if (task.getTaskType() == 4L) {
                 msg.setCmd("lottery");
                 LiveLotteryConf liveLotteryConf = JSON.parseObject(task.getContent(), LiveLotteryConf.class);
                 liveLotteryConf.setLotteryStatus("1");
                 liveLotteryConf.setUpdateTime( now);
+                msg.setData(JSON.toJSONString(liveLotteryConf));
                 liveLotteryConfService.updateLiveLotteryConf(liveLotteryConf);
             }else if (task.getTaskType() == 3L) {
                 msg.setCmd("sendMsg");