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