|
@@ -111,6 +111,12 @@ public class AppGameBettingController extends BaseController{
|
|
return HttpRet.fail("游戏已封盘,无法下单。");
|
|
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){
|
|
if(gameBetting.getBettingGameType() == 0){
|
|
AppGameItem appGameItem = appGameItemService.selectAppGameItemByGameIdAndItemLocation(appGame.getId(), gameBetting.getBettingItem());
|
|
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());
|
|
AppGameLottery appGameLottery = appGameLotteryService.selectLottery(appGame.getClassifyId(), appGame.getId(), appGame.getGameDate());
|
|
|
|
|
|
if(appGameLottery == null){
|
|
if(appGameLottery == null){
|