544782275@qq.com 3 years ago
parent
commit
4f921474fa
1 changed files with 3 additions and 2 deletions
  1. 3 2
      application/api/controller/Order.php

+ 3 - 2
application/api/controller/Order.php

@@ -172,11 +172,12 @@ class Order extends Base
         if(empty($pay_type)){
             $pay_type = $order_info['pay_type'];
         }
+        $price_total = $order_info['price_total'];
         $pay_no = get_order_sn();
         Db::name('store_order')->where('id',$order_id)->update(array('pay_no'=>$pay_no,'pay_type'=>$pay_type));
         if($pay_type == 1){    //微信支付
             $notify_url = $this->request->root(true) . '/api/Pay/order_notify';
-            $price_total = 0.01;
+            //$price_total = 0.01;
             $config = Pay::wx_pay('订单支付',$pay_no,$price_total,$notify_url);
             if($config){
                 Db::commit();
@@ -187,7 +188,7 @@ class Order extends Base
             }
         }else{
             $notify_url = $this->request->root(true) . '/api/Alipay/order_notify';
-            $price_total = 0.01;
+            //$price_total = 0.01;
             $config = Alipay::ali_pay('订单支付',$pay_no,$price_total,$notify_url);
             if($config){
                 Db::commit();