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

XIAOPAN

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