正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论