|
|
@@ -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) {
|