Replies: 1 comment
-
->getRaw(); 推测你是静默授权 出的错误,静默授权 需要你 $oauth->scopes(['snsapi_base']) 在调用 userFromCode($code); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
$code = "微信回调URL携带的 code"; // $_GET['code'] $user = $oauth->userFromCode($code);
这一步我把配置都写错了,但实际上执行的时候只是返回了一个对象,里面的所有key 都是 null 的,希望能抛出个异常,好让程序判断是什么原因导致了问题
Beta Was this translation helpful? Give feedback.
All reactions