Explorar o código

超能倒计时判断

kk hai 3 meses
pai
achega
a4cdce38fe

+ 12 - 6
game-business/src/main/java/com/game/business/task/AppGameBettingTask.java

@@ -110,6 +110,18 @@ public class AppGameBettingTask {
                 return;
             }
 
+            if(gameCode.equals(Common.GAME_FOUR_CODE)){
+                if(state == null || state != 0){
+                    return;
+                }
+            }
+
+            if(gameCode.equals(Common.GAME_FIVE_CODE)){
+                if(state == null || state != 1){
+                    return;
+                }
+            }
+
             AppGameClassify appGameClassify = appGameClassifyService.getByCode(classCode);
             if(appGameClassify == null){
 //                System.out.println("开奖游戏平台不存在:" + classCode);
@@ -131,12 +143,6 @@ public class AppGameBettingTask {
                 return;
             }
 
-            if(gameCode.equals(Common.GAME_FOUR_CODE)){
-                if(state == null || state != 0){
-                    return;
-                }
-            }
-
             AppGame appGame = codeGameMap.get(gameCode).get(0);
             appGame.setGameTime(time);
             appGameService.updateAppGame(appGame);