whitefang 1 yıl önce
ebeveyn
işleme
0593f8ec47
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      app/api/logic/ServiceOrderLogic.php

+ 4 - 1
app/api/logic/ServiceOrderLogic.php

@@ -548,6 +548,7 @@ class ServiceOrderLogic extends BaseLogic
             $coupon_price = 0;
             //退款金额
             $order_refund_amount = 0;
+            $payment_type = 0;
             foreach ($order_info['pay_orders'] as $k=>&$v){
                 $v['pay_status_name'] = $pay_status_data[$v['pay_status']];
                 $v['payment_type_name'] = $payment_type_data[$v['payment_type']];
@@ -562,8 +563,10 @@ class ServiceOrderLogic extends BaseLogic
                 }
 
                 $coupon_price += $v['coupon_price'];
-            }
 
+                $payment_type = $v['payment_type'];
+            }
+            $order_info['payment_type'] = $payment_type;
             //汇总优惠卷额度
             $order_info['coupon_price'] = $coupon_price;
             //退款汇总