diff --git a/application/wechat/controller/Config.php b/application/wechat/controller/Config.php index 5282d9288..9a33ab43b 100644 --- a/application/wechat/controller/Config.php +++ b/application/wechat/controller/Config.php @@ -55,7 +55,7 @@ class Config extends BasicAdmin 'appuri' => url("@wechat/api.push", '', true, true), 'appid' => $this->request->get('appid', sysconf('wechat_thr_appid')), 'appkey' => $this->request->get('appkey', sysconf('wechat_thr_appkey')), - 'authurl' => config('wechat.service_url') . "/wechat/api.push/auth/{$code}.html", + 'authurl' => config('wechat.service_url') . "/wechat/api.push/auth/redirect/{$code}.html", 'wechat' => $info, ]); } diff --git a/extend/service/WechatService.php b/extend/service/WechatService.php index be2087105..a24560acf 100644 --- a/extend/service/WechatService.php +++ b/extend/service/WechatService.php @@ -80,7 +80,6 @@ class WechatService list($appid, $appkey) = [sysconf('wechat_thr_appid'), sysconf('wechat_thr_appkey')]; $token = strtolower("{$name}-{$appid}-{$appkey}"); $location = config('wechat.service_url') . "/wechat/api.client/soap/param/{$token}.html"; - p($location); $params = ['uri' => strtolower($name), 'location' => $location, 'trace' => true]; return new SoapService(null, $params); }