|
@@ -250,19 +250,19 @@ public class AppGameBettingController extends BaseController{
|
|
|
|
|
|
List<String> checkItemList = new ArrayList<>();
|
|
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)) {
|
|
if (bettingItemList.contains(itemStr)) {
|
|
checkItemList.add(itemStr);
|
|
checkItemList.add(itemStr);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if(checkItemList.size() >= 3){
|
|
|
|
|
|
+ if(checkItemList.size() >= 4){
|
|
return HttpRet.fail("当前期投注选项已超过限额,无法下单!");
|
|
return HttpRet.fail("当前期投注选项已超过限额,无法下单!");
|
|
}
|
|
}
|
|
|
|
|
|
// 当前投注是否已经满足3个投注选项了
|
|
// 当前投注是否已经满足3个投注选项了
|
|
- if (checkItemList.size() == 2) {
|
|
|
|
|
|
+ if (checkItemList.size() == 3) {
|
|
// 当前投注的是否属于特殊选项重复投注
|
|
// 当前投注的是否属于特殊选项重复投注
|
|
if (!checkItemList.contains(gameBetting.getBettingItem())) {
|
|
if (!checkItemList.contains(gameBetting.getBettingItem())) {
|
|
return HttpRet.fail("当前期投注选项已超过限额,无法下单!");
|
|
return HttpRet.fail("当前期投注选项已超过限额,无法下单!");
|