WIN-2308041133\Administrator 2 mesi fa
parent
commit
8a79b371c0
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      app/services/order/StoreOrderServices.php

+ 4 - 1
app/services/order/StoreOrderServices.php

@@ -1736,7 +1736,10 @@ HTML;
                 $is_no_lb = $is_no_lb + 1;
             }
         }
-        if ($is_lb > 1 || $is_no_lb > 0) {
+        if ($is_lb > 1) {
+            throw new ApiException('礼包商品不支持混合购买');
+        }
+        if ($is_no_lb>0 && $is_no_lb > 0) {
             throw new ApiException('礼包商品不支持混合购买');
         }
         $seckill_id = 0;