From 566498fd03d28af19e2917e20966e267e681fcc6 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Mon, 31 Mar 2025 17:57:42 +0800 Subject: [PATCH] fix : coupon --- app/Service/Api/Order/PlaceOrderService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/Api/Order/PlaceOrderService.php b/app/Service/Api/Order/PlaceOrderService.php index 391ab5c..21e984b 100644 --- a/app/Service/Api/Order/PlaceOrderService.php +++ b/app/Service/Api/Order/PlaceOrderService.php @@ -200,7 +200,7 @@ class PlaceOrderService extends BaseOrderService $orderInsertModel->type = $this->orderType; $orderInsertModel->total_price = $this->orderRes['total_price']; $orderInsertModel->actual_price = max($this->orderRes['actual_price'], 0); - $orderInsertModel->discount_price = $this->orderRes['favorable_sundry_price'] + $this->orderRes['favorable_good_price']; + $orderInsertModel->discount_price = $this->orderRes['discount_price']; $orderInsertModel->append_price = $this->orderRes['sundry_price']; $orderInsertModel->append_copies = $this->orderRes['sundry_num']; $orderInsertModel->status = OrderCode::WAIT_PAY;