|
|
@@ -431,6 +431,7 @@ public class WebSocketServer {
|
|
|
SendMsgVo msg = new SendMsgVo();
|
|
|
msg.setLiveId(task.getLiveId());
|
|
|
msg.setData(task.getContent());
|
|
|
+ Date now = new Date();
|
|
|
try {
|
|
|
if (task.getTaskType() == 1L) {
|
|
|
msg.setCmd("goods");
|
|
|
@@ -440,11 +441,13 @@ public class WebSocketServer {
|
|
|
msg.setCmd("red");
|
|
|
LiveRedConf liveRedConf = JSON.parseObject(task.getContent(), LiveRedConf.class);
|
|
|
liveRedConf.setRedStatus(1L);
|
|
|
+ liveRedConf.setUpdateTime( now);
|
|
|
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);
|
|
|
liveLotteryConfService.updateLiveLotteryConf(liveLotteryConf);
|
|
|
}else if (task.getTaskType() == 3L) {
|
|
|
msg.setCmd("sendMsg");
|
|
|
@@ -456,7 +459,8 @@ public class WebSocketServer {
|
|
|
liveMsg.setUserId(0L);
|
|
|
liveMsg.setNickName(task.getTaskName());
|
|
|
liveMsg.setMsg(task.getContent());
|
|
|
- liveMsg.setCreateTime(new Date());
|
|
|
+ liveMsg.setCreateTime(now);
|
|
|
+ liveMsg.setUpdateTime(now);
|
|
|
liveMsgService.insertLiveMsg(liveMsg);
|
|
|
}
|
|
|
msg.setStatus(1);
|