ソースを参照

超能倒计时判断

kk 1 ヶ月 前
コミット
e4976cf73c

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

@@ -111,6 +111,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);
@@ -132,18 +144,6 @@ 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;
-                }
-            }
-
             AppGame appGame = codeGameMap.get(gameCode).get(0);
             appGame.setGameTime(time);
             appGameService.updateAppGame(appGame);