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

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

@@ -318,6 +318,7 @@ class StoreOrder extends BaseModel
             $mer_id = [];
             $totalNum = 0;
             $gainIntegral = 0;
+            $is_wholesale=0;
             foreach ($cartInfo as $cart) {
                 $cartIds[] = $cart['id'];
                 $totalNum += $cart['cart_num'];
@@ -327,6 +328,7 @@ class StoreOrder extends BaseModel
                 if (!$combinationId) $combinationId = $cart['combination_id'];
                 $cartInfoGainIntegral = isset($cart['productInfo']['give_integral']) ? bcmul($cart['cart_num'], $cart['productInfo']['give_integral'], 2) : 0;
                 $gainIntegral = bcadd($gainIntegral, $cartInfoGainIntegral, 2);
+                var_dump($cart);die();
             }
             $deduction = $seckill_id || $bargain_id || $combinationId;
             if ($deduction) {