Skip to content

fix: wechat oauth scope为snsapi_base getRaw返回空数组#281

Merged
overtrue merged 2 commits intoovertrue:4.xfrom
153264:fix_wechat_snsapi_base
Sep 27, 2024
Merged

fix: wechat oauth scope为snsapi_base getRaw返回空数组#281
overtrue merged 2 commits intoovertrue:4.xfrom
153264:fix_wechat_snsapi_base

Conversation

@153264
Copy link
Contributor

@153264 153264 commented Sep 27, 2024

w7corp/easywechat#2840

$oauth = $app->getOAuth()->scopes(['snsapi_base']);

$user = $oauth->userFromCode($code);
dump($user);
dump($user->getRaw());

修复后
image

@overtrue overtrue merged commit 1baae73 into overtrue:4.x Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants