|
@@ -181,7 +181,10 @@ public class AppGameLotteryAutoTask {
|
|
|
|
|
|
JSONObject gameLottery = new JSONObject();
|
|
JSONObject gameLottery = new JSONObject();
|
|
gameLottery.put("type", "2");
|
|
gameLottery.put("type", "2");
|
|
|
|
+ gameLottery.put("gameId", appGame.getId());
|
|
|
|
+ gameLottery.put("gameDate", appGame.getGameDate());
|
|
gameLottery.put("gameLottery", lottertSucc);
|
|
gameLottery.put("gameLottery", lottertSucc);
|
|
|
|
+
|
|
webSocketServer.sendMessageAll(gameLottery.toJSONString());
|
|
webSocketServer.sendMessageAll(gameLottery.toJSONString());
|
|
|
|
|
|
|
|
|
|
@@ -238,12 +241,13 @@ public class AppGameLotteryAutoTask {
|
|
appGame.setId(gameId);
|
|
appGame.setId(gameId);
|
|
appGame.setGameTime(time);
|
|
appGame.setGameTime(time);
|
|
|
|
|
|
- if(countdown == 2){
|
|
|
|
|
|
+ if(countdown == 0){
|
|
|
|
|
|
- appGame.setGameDate(DateUtils.getTime());
|
|
|
|
|
|
+ appGame.setGameDate(DateUtils.dateTimeNow());
|
|
|
|
|
|
JSONObject dateJson = new JSONObject();
|
|
JSONObject dateJson = new JSONObject();
|
|
dateJson.put("type", "3");
|
|
dateJson.put("type", "3");
|
|
|
|
+ dateJson.put("gameId", appGame.getId());
|
|
dateJson.put("gameDate", appGame.getGameDate());
|
|
dateJson.put("gameDate", appGame.getGameDate());
|
|
webSocketServer.sendMessageAll(dateJson.toJSONString());
|
|
webSocketServer.sendMessageAll(dateJson.toJSONString());
|
|
|
|
|