WIN-2308041133\Administrator 4 months ago
parent
commit
6976058c73
1 changed files with 8 additions and 8 deletions
  1. 8 8
      app/models/store/StoreCart.php

+ 8 - 8
app/models/store/StoreCart.php

@@ -91,14 +91,14 @@ class StoreCart extends BaseModel
             if ($product['store_type'] == 2 && !$is_new) return self::setErrorInfo('虚拟商品不可加入购物车');
         }
 //        普惠商品,积分商品,报单商品不能加入购物车
-        $product_info = StoreProduct::get($product_id);
-        if ($product_info['is_inclusive']==1){
-            return self::setErrorInfo('普惠商品不能加入购物车');
-        }elseif ($product_info['is_points']==1){
-            return self::setErrorInfo('积分商品不能加入购物车');
-        }elseif ($product_info['is_explosive']==1){
-            return self::setErrorInfo('报单商品不能加入购物车');
-        }
+//        $product_info = StoreProduct::get($product_id);
+//        if ($product_info['is_inclusive']==1){
+//            return self::setErrorInfo('普惠商品不能加入购物车');
+//        }elseif ($product_info['is_points']==1){
+//            return self::setErrorInfo('积分商品不能加入购物车');
+//        }elseif ($product_info['is_explosive']==1){
+//            return self::setErrorInfo('报单商品不能加入购物车');
+//        }
         if ($cart = self::where('type', $type)->where('uid', $uid)->where('product_id', $product_id)->where('product_attr_unique', $product_attr_unique)->where('is_new', $is_new)->where('is_pay', 0)->where('is_del', 0)->where('combination_id', $combination_id)->where('bargain_id', $bargain_id)->where('seckill_id', $seckill_id)->find()) {
             if ($is_new)
                 $cart->cart_num = $cart_num;