作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

1

@@ -148,12 +148,12 @@ class Order extends Api @@ -148,12 +148,12 @@ class Order extends Api
148 // 发起微信支付 148 // 发起微信支付
149 $Wechat = new Wechat; 149 $Wechat = new Wechat;
150 $order['order_price'] = 0.01;//测试金额 150 $order['order_price'] = 0.01;//测试金额
151 - if(!$payment = $Wechat->wxPay($model['order_no'], $this->user['openid'], $order['order_price'])){ 151 + if(!$payment = $Wechat->wxPay($order['order_no'], $this->user['openid'], $order['order_price'])){
152 $this->error($Wechat->getError()); 152 $this->error($Wechat->getError());
153 } 153 }
154 $this->success(__('订单支付成功'),[ 154 $this->success(__('订单支付成功'),[
155 'payment' => $payment, 155 'payment' => $payment,
156 - 'order_id' => $model['id'] 156 + 'order_id' => $order['id']
157 ]); 157 ]);
158 // (new Cart)->notifyTest($order['order_no']); 158 // (new Cart)->notifyTest($order['order_no']);
159 $this->success(__('订单支付成功')); 159 $this->success(__('订单支付成功'));