|
@@ -36,7 +36,7 @@ public class AppGameHanaderTask {
|
|
|
|
|
|
if(appGame == null) return;
|
|
|
|
|
|
- int countdown = 52;
|
|
|
+ int countdown = 60;
|
|
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
|
|
@@ -46,9 +46,20 @@ public class AppGameHanaderTask {
|
|
|
|
|
|
// 推送倒计时
|
|
|
jsonObject.put("type", "1");
|
|
|
- jsonObject.put("countdown", countdown);
|
|
|
+ jsonObject.put("countDown", countdown);
|
|
|
+ jsonObject.put("gameId", appGame.getId());
|
|
|
+ jsonObject.put("gameDate", appGame.getGameDate());
|
|
|
webSocketServer.sendMessageAll(jsonObject.toJSONString());
|
|
|
|
|
|
+ // 推送封盘消息
|
|
|
+ if(countdown == 16){
|
|
|
+ jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("type", "4");
|
|
|
+ jsonObject.put("gameId", appGame.getId());
|
|
|
+ jsonObject.put("gameDate", appGame.getGameDate());
|
|
|
+ webSocketServer.sendMessageAll(jsonObject.toJSONString());
|
|
|
+ }
|
|
|
+
|
|
|
// 开奖
|
|
|
if(countdown == 7){
|
|
|
appGameLotteryAutoTask.autoTask(appGame.getId());
|