|
|
@@ -484,12 +484,12 @@ class Checkout
|
|
|
}
|
|
|
if ($discountRatio > 0) {
|
|
|
// 会员折扣后的商品总金额
|
|
|
- $gradeTotalPrice = max(0.01, helper::bcmul($goods['total_price'], $discountRatio,2));
|
|
|
+ $gradeTotalPrice = max(0.01, helper::bcmul($goods['total_price'], $discountRatio,1));
|
|
|
helper::setDataAttribute($goods, [
|
|
|
'is_user_grade' => true,
|
|
|
'grade_ratio' => $discountRatio,
|
|
|
- 'grade_goods_price' => helper::number2(helper::bcmul($goods['goods_price'], $discountRatio,2), true),
|
|
|
- 'grade_total_money' => helper::number2(helper::bcsub($goods['total_price'], $gradeTotalPrice,2)),
|
|
|
+ 'grade_goods_price' => helper::number2(helper::bcmul($goods['goods_price'], $discountRatio,1)),
|
|
|
+ 'grade_total_money' => helper::number2(helper::bcsub($goods['total_price'], $gradeTotalPrice,1)),
|
|
|
'total_price' => $gradeTotalPrice,
|
|
|
], false);
|
|
|
}
|