|
@@ -227,8 +227,8 @@ class StoreCart extends BaseModel
|
|
|
$cart['truePrice'] = (float)bcsub($attrInfo['price'], bcmul($discount, $attrInfo['price'], 2), 2);
|
|
$cart['truePrice'] = (float)bcsub($attrInfo['price'], bcmul($discount, $attrInfo['price'], 2), 2);
|
|
|
$cart['vip_truePrice'] = (float)bcmul($discount, $attrInfo['price'], 2);
|
|
$cart['vip_truePrice'] = (float)bcmul($discount, $attrInfo['price'], 2);
|
|
|
} else {
|
|
} else {
|
|
|
- $cart['truePrice'] = $attrInfo['price'];
|
|
|
|
|
- $cart['vip_truePrice'] = 0;
|
|
|
|
|
|
|
+ $cart['truePrice'] =(float)StoreProduct::setLevelPrice($attrInfo['price'], $uid, true);
|
|
|
|
|
+ $cart['vip_truePrice'] = (float)StoreProduct::setLevelPrice($attrInfo['price'], $uid);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
$cart['trueStock'] = $attrInfo['stock'];
|
|
$cart['trueStock'] = $attrInfo['stock'];
|