作者 景龙
1 个管道 的构建 失败 耗费 0 秒

调试支付

@@ -74,8 +74,8 @@ class Wxpay extends Api @@ -74,8 +74,8 @@ class Wxpay extends Api
74 'total_fee' => 1, 74 'total_fee' => 1,
75 //'total_fee' => floatval($total_price)*100,//单位:分 75 //'total_fee' => floatval($total_price)*100,//单位:分
76 'openid' => $openid, 76 'openid' => $openid,
77 - 'notify_url' => 'http://feipin.w.brotop.cn/api/Wxpay/notify',  
78 - 'return_url' => 'http://feipin.w.brotop.cn/api/Wxpay/wechatReturn', 77 + 'notify_url' => $this->request->root(true) . '/api/Wxpay/notify',
  78 + 'return_url' => $this->request->root(true) . '/api/Wxpay/wechatReturn',
79 ]; 79 ];
80 //跳转或输出 80 //跳转或输出
81 $this->success('成功',$pay->miniapp($order)); 81 $this->success('成功',$pay->miniapp($order));
@@ -90,7 +90,6 @@ class Wxpay extends Api @@ -90,7 +90,6 @@ class Wxpay extends Api
90 */ 90 */
91 public function notify(){ 91 public function notify(){
92 $pay = Service::checkNotify('wechat'); 92 $pay = Service::checkNotify('wechat');
93 - Log::record('test', 'info');  
94 if (!$pay) { 93 if (!$pay) {
95 $this->error('签名错误'); 94 $this->error('签名错误');
96 } 95 }