overtrue / socialite

Socialite is an OAuth2 Authentication tool. It is inspired by laravel/socialite, you can easily use it without Laravel.
MIT License
1.3k stars 241 forks source link

overtrue/wechat 升级后,无法拿到 POST 体中的 code #184

Closed maxuebing closed 4 years ago

maxuebing commented 4 years ago

是否因为新版的 overtrue/wechat 去掉了 Socialite 的第二个参数($app['request'])导致的: vendor/overtrue/wechat/src/OfficialAccount/OAuth/ServiceProvider.php

 $socialite = (new Socialite([
                'wechat' => [
                    'client_id' => $app['config']['app_id'],
                    'client_secret' => $app['config']['secret'],
                    'redirect' => $this->prepareCallbackUrl($app),
                ],
            ], $app['request']))->driver('wechat');
overtrue commented 4 years ago

更新版本: composer update overtrue/wechat

maxuebing commented 4 years ago

这是目前用到包的版本信息,应该都是最新的了,麻烦再看看

"name": "laravel/framework",
"version": "v5.6.40",

 "name": "overtrue/wechat",
 "version": "4.2.28",

 "name": "overtrue/socialite",
 "version": "2.0.16",
overtrue commented 4 years ago

https://github.com/overtrue/wechat/releases/tag/4.2.30

修复了哈,麻烦升级

GitHub
Release 4.2.30 · overtrue/wechat
Fixed overtrue/socialite#181