商城订单支付问题修复
This commit is contained in:
@@ -150,7 +150,7 @@ class ProductOrderController extends BaseAppController
|
||||
$this->requestValidate($post, [
|
||||
['prescription_id', 'required']
|
||||
]);
|
||||
$ProductOrder = ProductOrder::find()->select('id,order_no,su_id,p_id,user_id,is_pay,prescription_type,address_id,address,decoct_price,items_price,process_price,treatement_price,total_pay_price,pay_method,trans_expenses,created_at,received_time,cancel_status,refund_status,status')->where([
|
||||
$ProductOrder = ProductOrder::find()->select('id,order_no,su_id,p_id,user_id,is_pay,prescription_type,address_id,address,decoct_price,order_type,items_price,process_price,treatement_price,total_pay_price,pay_method,trans_expenses,created_at,received_time,cancel_status,refund_status,status')->where([
|
||||
'p_id' => $post['prescription_id'],
|
||||
'user_id' => \Yii::$app->user->identity->getId(),
|
||||
'store_id' => $post['store_id']
|
||||
@@ -219,7 +219,7 @@ class ProductOrderController extends BaseAppController
|
||||
}
|
||||
$count = count($granular['list']);
|
||||
}
|
||||
if ($ProductOrder['p_id'] !== 0) {
|
||||
if ($ProductOrder['p_id'] !== 0 && $ProductOrder['order_type'] !== 2) {
|
||||
if ($prescription['category'] === 2) {
|
||||
$ProductOrder['total_pay_price'] = $ProductOrder['trans_expenses'];
|
||||
$ProductOrder['items_price'] = 0;
|
||||
|
||||
Reference in New Issue
Block a user