调整通过砍价单下单
parent
4bbd9f9372
commit
2deccdff14
|
|
@ -196,6 +196,11 @@ class OrderService
|
|||
// 订单支付金额=商品总额-券折扣金额-会员折扣金额+邮费
|
||||
$totalAmount = $productsTotalAmount - $couponDiscountAmount - $vipDiscountAmount;
|
||||
|
||||
//如果有砍价优惠
|
||||
if ($bargainOrder) {
|
||||
$totalAmount -= $bargainOrder->bargain_price;
|
||||
}
|
||||
|
||||
if ($totalAmount < 0) {
|
||||
$totalAmount = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue