...
|
...
|
@@ -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 = [];
|
...
|
...
|
|