Răsfoiți Sursa

游戏修复

kk 1 lună în urmă
părinte
comite
efea872688

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