feat : ide config
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user