diff --git a/app/controller/Wechat.php b/app/controller/Wechat.php index 9e5d6fb..ded2a20 100644 --- a/app/controller/Wechat.php +++ b/app/controller/Wechat.php @@ -32,6 +32,7 @@ class Wechat { $url = $GLOBALS['data']['data']['url']; $redirect = Route::buildUrl('wechat/code', ['callback' => $url]) + ->suffix(false) ->domain(true); $this->initWechat(); return $this->app->oauth->scopes(['snsapi_userinfo'])->redirect($redirect);