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

1

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