mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-15 13:22:51 +00:00
支付回调地址用后台配置的
This commit is contained in:
parent
d03b13156e
commit
81c156b516
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user