正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -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(__('订单支付成功')); |
-
请 注册 或 登录 后发表评论