6
0
Fork 0

调整通过砍价单下单

release
vine_liutk 2022-04-08 16:38:39 +08:00
parent 4bbd9f9372
commit 2deccdff14
1 changed files with 5 additions and 0 deletions

View File

@ -196,6 +196,11 @@ class OrderService
// 订单支付金额=商品总额-券折扣金额-会员折扣金额+邮费
$totalAmount = $productsTotalAmount - $couponDiscountAmount - $vipDiscountAmount;
//如果有砍价优惠
if ($bargainOrder) {
$totalAmount -= $bargainOrder->bargain_price;
}
if ($totalAmount < 0) {
$totalAmount = 0;
}