hrjy 2 rokov pred
rodič
commit
bb50fe28fb
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      app/models/store/StoreOrder.php

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

@@ -326,8 +326,8 @@ class StoreOrder extends BaseModel
                 if (!$seckill_id) $seckill_id = $cart['seckill_id'];
                 if (!$bargain_id) $bargain_id = $cart['bargain_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);
                 $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;