商城订单支付问题修复
This commit is contained in:
@@ -129,13 +129,15 @@ class ProductOrderSubmitForm extends BaseModel
|
||||
$paymentProductOrder->order_no = $productOrder['order_no'];
|
||||
$paymentProductOrder->pay_order_no = $pay_order_no;
|
||||
$paymentProductOrder->amount = $productOrder['total_pay_price'];
|
||||
if ($productOrder->prescription->category === 2) {
|
||||
if ($productOrder->delivery_method === 0) {
|
||||
$paymentProductOrder->amount = $productOrder['trans_expenses'];
|
||||
$total_fee = $productOrder['trans_expenses'];
|
||||
} elseif ($productOrder->delivery_method === 1) {
|
||||
$paymentProductOrder->amount = 0;
|
||||
$total_fee = 0;
|
||||
if ($productOrder['p_id'] !== 0 && $productOrder['order_type'] !== 2) {
|
||||
if ($productOrder->prescription->category === 2) {
|
||||
if ($productOrder->delivery_method === 0) {
|
||||
$paymentProductOrder->amount = $productOrder['trans_expenses'];
|
||||
$total_fee = $productOrder['trans_expenses'];
|
||||
} elseif ($productOrder->delivery_method === 1) {
|
||||
$paymentProductOrder->amount = 0;
|
||||
$total_fee = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user