feat : ide config

This commit is contained in:
2025-03-17 17:29:51 +08:00
parent 4758aa598d
commit 9e22529161
14 changed files with 259 additions and 52 deletions

View File

@@ -79,6 +79,8 @@ class PlaceOrderService extends BaseOrderService
$this->sendStockMq($this->orderId,OrderCode::WAIT_PAY);
$this->orderRes['order_id'] = $this->orderId;
return $this->return->success('success',$this->orderRes);
}
@@ -195,7 +197,7 @@ class PlaceOrderService extends BaseOrderService
$orderInsertModel->copies = $this->orderRes['copies'];
$orderInsertModel->type = $this->orderType;
$orderInsertModel->total_price = $this->orderRes['total_price'];
$orderInsertModel->actual_price = $this->orderRes['actual_price'];
$orderInsertModel->actual_price = max($this->orderRes['actual_price'], 0);
$orderInsertModel->discount_price = $this->orderRes['favorable_sundry_price'] + $this->orderRes['favorable_good_price'];
$orderInsertModel->status = OrderCode::WAIT_PAY;
$orderInsertModel->is_refund_all = OrderCode::REFUND_NULL;