WIN-2308041133\Administrator 1 month ago
parent
commit
f266855c2b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/models/store/StoreOrder.php

+ 2 - 2
app/models/store/StoreOrder.php

@@ -328,8 +328,8 @@ class StoreOrder extends BaseModel
                 if (!$combinationId) $combinationId = $cart['combination_id'];
                 if (!$combinationId) $combinationId = $cart['combination_id'];
                 $cartInfoGainIntegral = isset($cart['productInfo']['give_integral']) ? bcmul($cart['cart_num'], $cart['productInfo']['give_integral'], 2) : 0;
                 $cartInfoGainIntegral = isset($cart['productInfo']['give_integral']) ? bcmul($cart['cart_num'], $cart['productInfo']['give_integral'], 2) : 0;
                 $gainIntegral = bcadd($gainIntegral, $cartInfoGainIntegral, 2);
                 $gainIntegral = bcadd($gainIntegral, $cartInfoGainIntegral, 2);
-                $is_wholesale = $cart['is_wholesale'];
-                if ($is_wholesale!=-1&&$is_wholesale!=$cart['is_wholesale']){
+                $is_wholesale = $cart['productInfo']['is_wholesale'];
+                if ($is_wholesale!=-1&&$is_wholesale!=$cart['productInfo']['is_wholesale']){
                     return self::setErrorInfo('批发商品和普通商品不能混合购买!', true);
                     return self::setErrorInfo('批发商品和普通商品不能混合购买!', true);
                 }
                 }
             }
             }