作者 潘浩文
1 个管道 的构建 通过 耗费 1 秒

更新 OrderController.php

@@ -608,7 +608,7 @@ class OrderController extends HomeBaseController{ @@ -608,7 +608,7 @@ class OrderController extends HomeBaseController{
608 Db::name('order')->where('id',$order['id'])->update(['group_money'=>($order['price']-$user['fee'])]); 608 Db::name('order')->where('id',$order['id'])->update(['group_money'=>($order['price']-$user['fee'])]);
609 $body = '支付'; 609 $body = '支付';
610 $notify_url = url('order/group', '', '', true);//回调地址 610 $notify_url = url('order/group', '', '', true);//回调地址
611 - $out_trade_no = $param['order_no'] . $this->create_noncestr(4); 611 + $out_trade_no = $order['order_no'] . $this->create_noncestr(4);
612 $wxPay = new WeixinPay($user['open_id'], $out_trade_no, $body, ($order['price']-$user['fee'])*100, $notify_url); 612 $wxPay = new WeixinPay($user['open_id'], $out_trade_no, $body, ($order['price']-$user['fee'])*100, $notify_url);
613 $pay = $wxPay->pay(); 613 $pay = $wxPay->pay();
614 if (isset($pay['package'])) { 614 if (isset($pay['package'])) {