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

购买测试

... ... @@ -237,11 +237,11 @@ class Cart extends Api
$this->model->where(['id'=>['in',$data['cart_ids']]])->delete();
if($order['order_price'] > 0){
// // 发起微信支付
$Wechat = new Wechat;
if(!$payment = $Wechat->wxPay($model['order_no'], $this->user['openid'], $order['order_price'])){
$this->error($Wechat->getError());
}
// $payment = [];
// $Wechat = new Wechat;
// if(!$payment = $Wechat->wxPay($model['order_no'], $this->user['openid'], $order['order_price'])){
// $this->error($Wechat->getError());
// }
$payment = [];
}else{
$this->notifyTest($model['order_no']);
$payment = [];
... ...