作者 刘朕
1 个管道 的构建 通过 耗费 1 秒

合并分支 'liuzhen' 到 'master'

支付调试



查看合并请求 !17
@@ -448,13 +448,13 @@ class Goods extends Api @@ -448,13 +448,13 @@ class Goods extends Api
448 // 创建订单 448 // 创建订单
449 if ($this->model->order_add($this->user_id, $order)) { 449 if ($this->model->order_add($this->user_id, $order)) {
450 // 发起微信支付 450 // 发起微信支付
451 - if($this->request->request('type')&&$this->request->request('type')=='gzh'){ 451 +// if($this->request->request('type')&&$this->request->request('type')=='gzh'){
452 $this->init_wx_pay_for_gzh(true); 452 $this->init_wx_pay_for_gzh(true);
453 $this->make_wx_pay('wechat'); 453 $this->make_wx_pay('wechat');
454 - }else{  
455 - $this->init_wx_pay_for_wxapp();  
456 - $this->make_wx_pay('wxapp');  
457 - } 454 +// }else{
  455 +// $this->init_wx_pay_for_wxapp();
  456 +// $this->make_wx_pay('wxapp');
  457 +// }
458 } 458 }
459 $error = $this->model->getError() ?: '订单创建失败'; 459 $error = $this->model->getError() ?: '订单创建失败';
460 return $this->error($error); 460 return $this->error($error);
@@ -768,6 +768,6 @@ class Goods extends Api @@ -768,6 +768,6 @@ class Goods extends Api
768 $config = $payment->configForJSSDKPayment($prepayId); // 返回数组 768 $config = $payment->configForJSSDKPayment($prepayId); // 返回数组
769 return $this->success('预支付成功',$config); 769 return $this->success('预支付成功',$config);
770 } 770 }
771 - return $this->error('微信支付调用失败',[$result,$third,['user_id' => $this->user_id, 'platform' => $platform]]); 771 + return $this->error('微信支付调用失败',$result);
772 } 772 }
773 } 773 }