fix : coupon

This commit is contained in:
2025-03-31 17:57:42 +08:00
parent 337da39157
commit 566498fd03

View File

@@ -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;