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

更新 OrderController.php

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