From feb3eca83910dac425390aaabcd89896686b9c34 Mon Sep 17 00:00:00 2001 From: overtrue Date: Tue, 28 Jul 2020 12:23:13 +0800 Subject: [PATCH] Revert "Bugfix. close #380" This reverts commit ac96bf7581465d7b78350ba8fe94ec827784bc7d. --- src/Middleware/OAuthAuthenticate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));