Jelajahi Sumber

游戏封盘

kk 3 minggu lalu
induk
melakukan
4716ed871d

+ 6 - 7
game-business/src/main/java/com/game/business/controller/AppGameBettingController.java

@@ -111,6 +111,12 @@ public class AppGameBettingController extends BaseController{
             return HttpRet.fail("游戏已封盘,无法下单。");
         }
 
+        String[] timeArry = appGame.getGameTime().substring(0, 5).split(":");
+        int m = Integer.parseInt(timeArry[1]);
+        if(m <= 2){
+            return HttpRet.fail("游戏已封盘,无法下单。");
+        }
+
         // 单选
         if(gameBetting.getBettingGameType() == 0){
             AppGameItem appGameItem = appGameItemService.selectAppGameItemByGameIdAndItemLocation(appGame.getId(), gameBetting.getBettingItem());
@@ -145,13 +151,6 @@ public class AppGameBettingController extends BaseController{
             }
         }
 
-//        String[] timeArry = appGame.getGameTime().substring(0, 5).split(":");
-//        int m = Integer.parseInt(timeArry[1]);
-//
-//        if(m <= 10){
-//            return HttpRet.fail("游戏已封盘,无法下单。");
-//        }
-
         AppGameLottery appGameLottery = appGameLotteryService.selectLottery(appGame.getClassifyId(), appGame.getId(), appGame.getGameDate());
 
         if(appGameLottery == null){