|
@@ -326,8 +326,8 @@ class StoreOrder extends BaseModel
|
|
if (!$seckill_id) $seckill_id = $cart['seckill_id'];
|
|
if (!$seckill_id) $seckill_id = $cart['seckill_id'];
|
|
if (!$bargain_id) $bargain_id = $cart['bargain_id'];
|
|
if (!$bargain_id) $bargain_id = $cart['bargain_id'];
|
|
if (!$combinationId) $combinationId = $cart['combination_id'];
|
|
if (!$combinationId) $combinationId = $cart['combination_id'];
|
|
- $storeProduct = StoreProduct::where('id',$cart['productInfo']['id'])->find();
|
|
|
|
- if($storeProduct['cate_id'] == 4 and $useIntegral)return self::setErrorInfo('该商品不能抵扣', true);
|
|
|
|
|
|
+// $storeProduct = StoreProduct::where('id',$cart['productInfo']['id'])->find();
|
|
|
|
+// if($storeProduct['cate_id'] == 4 and $useIntegral)return self::setErrorInfo('该商品不能抵扣', true);
|
|
// if ($cart['productInfo']['cate_id'] == 4 and $useIntegral) return self::setErrorInfo('该商品不能抵扣', true);
|
|
// if ($cart['productInfo']['cate_id'] == 4 and $useIntegral) return self::setErrorInfo('该商品不能抵扣', true);
|
|
$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;
|
|
$whiteInfoGainIntegral = isset($cart['productInfo']['white_integral']) ? bcmul($cart['cart_num'], $cart['productInfo']['white_integral'], 2) : 0;
|
|
$whiteInfoGainIntegral = isset($cart['productInfo']['white_integral']) ? bcmul($cart['cart_num'], $cart['productInfo']['white_integral'], 2) : 0;
|