diff --git a/src/Middleware/OAuthAuthenticate.php b/src/Middleware/OAuthAuthenticate.php index 25ea7cb..81e3b7e 100644 --- a/src/Middleware/OAuthAuthenticate.php +++ b/src/Middleware/OAuthAuthenticate.php @@ -60,7 +60,7 @@ public function handle($request, Closure $next, $account = 'default', $scope = n session()->forget($sessionKey); - return redirect()->to($officialAccount->oauth->scopes($scope)->redirect($request->fullUrl())); + return $officialAccount->oauth->scopes($scope)->redirect($request->fullUrl()); } event(new WeChatUserAuthorized(session($sessionKey), $isNewSession, $account));