|
@@ -200,7 +200,6 @@ public class AppGameBettingController extends BaseController{
|
|
|
}
|
|
|
|
|
|
if(checkItemList.size() == 4){
|
|
|
- return HttpRet.fail("当前期投注选项已超过限额,无法下单!");
|
|
|
}
|
|
|
|
|
|
// 当前投注是否已经满足3个投注选项了
|
|
@@ -216,7 +215,7 @@ public class AppGameBettingController extends BaseController{
|
|
|
|
|
|
List<String> itemSmallList = Arrays.asList(Common.GAME_BETTING_ITEM_SMALL_LIMIT);
|
|
|
|
|
|
- List<String> itemBigList = Arrays.asList(Common.GAME_BETTING_ITEM_SMALL_LIMIT);
|
|
|
+ List<String> itemBigList = Arrays.asList(Common.GAME_BETTING_ITEM_BIG_LIMIT);
|
|
|
|
|
|
List<String> bettingItemList = appGameBettingService.getBettingItem(gameBetting.getUserId(), gameBetting.getGameId(), appGame.getGameDate());
|
|
|
|
|
@@ -250,19 +249,19 @@ public class AppGameBettingController extends BaseController{
|
|
|
|
|
|
List<String> checkItemList = new ArrayList<>();
|
|
|
|
|
|
- for (int i = 0; i < itemSmallList.size(); i++) {
|
|
|
- String itemStr = itemSmallList.get(i);
|
|
|
+ for (int i = 0; i < itemBigList.size(); i++) {
|
|
|
+ String itemStr = itemBigList.get(i);
|
|
|
if (bettingItemList.contains(itemStr)) {
|
|
|
checkItemList.add(itemStr);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(checkItemList.size() >= 3){
|
|
|
+ if(checkItemList.size() >= 4){
|
|
|
return HttpRet.fail("当前期投注选项已超过限额,无法下单!");
|
|
|
}
|
|
|
|
|
|
// 当前投注是否已经满足3个投注选项了
|
|
|
- if (checkItemList.size() == 2) {
|
|
|
+ if (checkItemList.size() == 3) {
|
|
|
// 当前投注的是否属于特殊选项重复投注
|
|
|
if (!checkItemList.contains(gameBetting.getBettingItem())) {
|
|
|
return HttpRet.fail("当前期投注选项已超过限额,无法下单!");
|