ソースを参照

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

sugar1569 7 年 前
コミット
81c156b516
1 ファイル変更3 行追加1 行削除
  1. 3 1
      extend/service/WechatService.php

+ 3 - 1
extend/service/WechatService.php

@@ -22,6 +22,7 @@ use EasyWeChat\Payment\Order;
 use EasyWeChat\Server\Guard;
 use EasyWeChat\Server\Guard;
 use EasyWeChat\Support\XML;
 use EasyWeChat\Support\XML;
 use think\Url;
 use think\Url;
+use think\Request;
 
 
 class WechatService
 class WechatService
 {
 {
@@ -47,7 +48,8 @@ class WechatService
                 'key'=>$payment['pay_weixin_key'],
                 'key'=>$payment['pay_weixin_key'],
                 'cert_path'=>realpath('.'.$payment['pay_weixin_client_cert']),
                 'cert_path'=>realpath('.'.$payment['pay_weixin_client_cert']),
                 'key_path'=>realpath('.'.$payment['pay_weixin_client_key']),
                 '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;
         return $config;