|
|
@@ -188,7 +188,9 @@ class StoreCart extends BaseModel
|
|
|
}
|
|
|
$product['image'] = set_file_url($product['image']);
|
|
|
$cart['productInfo'] = $product;
|
|
|
- var_dump($product);die();
|
|
|
+ if ($product['is_inclusive']==1||$product['is_points']==1||$product['is_explosive']==1){
|
|
|
+ $is_vip = 1;
|
|
|
+ }
|
|
|
//商品不存在
|
|
|
if (!$product) {
|
|
|
$model->where('id', $cart['id'])->update(['is_del' => 1]);
|
|
|
@@ -237,8 +239,8 @@ class StoreCart extends BaseModel
|
|
|
$cart['truePrice'] = $attrInfo['price'];
|
|
|
$cart['vip_truePrice'] = 0;
|
|
|
} else {
|
|
|
- $cart['truePrice'] = (float)StoreProduct::setLevelPrice($attrInfo['price'], $uid, true);
|
|
|
- $cart['vip_truePrice'] = (float)StoreProduct::setLevelPrice($attrInfo['price'], $uid);
|
|
|
+ $cart['truePrice'] = (float)StoreProduct::setLevelPrice($attrInfo['price'], $uid, true,$is_vip);
|
|
|
+ $cart['vip_truePrice'] = (float)StoreProduct::setLevelPrice($attrInfo['price'], $uid,false,$is_vip);
|
|
|
}
|
|
|
$cart['trueStock'] = $attrInfo['stock'];
|
|
|
$cart['costPrice'] = $attrInfo['cost'];
|
|
|
@@ -256,8 +258,8 @@ class StoreCart extends BaseModel
|
|
|
$cart['productInfo']['attrInfo']['weight'] = $product['weight'];
|
|
|
$cart['productInfo']['attrInfo']['volume'] = $product['volume'];
|
|
|
} else {
|
|
|
- $cart['truePrice'] = (float)StoreProduct::setLevelPrice($cart['productInfo']['price'], $uid, true);
|
|
|
- $cart['vip_truePrice'] = (float)StoreProduct::setLevelPrice($cart['productInfo']['price'], $uid);
|
|
|
+ $cart['truePrice'] = (float)StoreProduct::setLevelPrice($cart['productInfo']['price'], $uid, true,$is_vip);
|
|
|
+ $cart['vip_truePrice'] = (float)StoreProduct::setLevelPrice($cart['productInfo']['price'], $uid,false,$is_vip);
|
|
|
}
|
|
|
$cart['trueStock'] = $cart['productInfo']['stock'];
|
|
|
$cart['costPrice'] = $cart['productInfo']['cost'];
|