2 次代码提交 7e4be79eb1 ... a1932d5130

作者 SHA1 备注 提交日期
  kk a1932d5130 Merge remote-tracking branch 'origin/master' 1 月之前
  kk efea872688 游戏修复 1 月之前

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

@@ -250,19 +250,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("当前期投注选项已超过限额,无法下单!");