支付回调地址用后台配置的

This commit is contained in:
sugar1569 2019-02-14 10:32:50 +08:00
parent d03b13156e
commit 81c156b516

View File

@ -22,6 +22,7 @@ use EasyWeChat\Payment\Order;
use EasyWeChat\Server\Guard;
use EasyWeChat\Support\XML;
use think\Url;
use think\Request;
class WechatService
{
@ -47,7 +48,8 @@ class WechatService
'key'=>$payment['pay_weixin_key'],
'cert_path'=>realpath('.'.$payment['pay_weixin_client_cert']),
'key_path'=>realpath('.'.$payment['pay_weixin_client_key']),
'notify_url'=>SystemConfigService::get('site_url').Url::build('wap/Wechat/notify')
//'notify_url'=>SystemConfigService::get('site_url').Url::build('wap/Wechat/notify')
'notify_url'=>Request::instance()->domain().Url::build('wap/Wechat/notify')
];
}
return $config;