Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想问一下网页授权code 如何得到opneId 用户信息 #40

Closed
kinsou opened this issue Mar 2, 2021 · 0 comments
Closed

想问一下网页授权code 如何得到opneId 用户信息 #40

kinsou opened this issue Mar 2, 2021 · 0 comments

Comments

@kinsou
Copy link

kinsou commented Mar 2, 2021

正常第三方授权
WxOpenComponentService wxOpenComponentService = WxOpenConfiguration.getOpenService().getWxOpenComponentService();
//第一步url重定向
url=wxOpenComponentService.oauth2buildAuthorizationUrl(appid, redirectUri, scope, state);
//第二步,获取token等
WxMpOAuth2AccessToken accessToken=wxOpenComponentService.oauth2getAccessToken(appid, code);

提示 redirect_url 错误代码10003

@kinsou kinsou changed the title 想问一下网页授权code 如何得到opneId 用户信息 想问一下网页授权code 如何得到opneId 用户信息 "代公众号发起网页授权" Mar 2, 2021
@kinsou kinsou changed the title 想问一下网页授权code 如何得到opneId 用户信息 "代公众号发起网页授权" 想问一下网页授权code 如何得到opneId 用户信息 Mar 2, 2021
@kinsou kinsou closed this as completed Mar 2, 2021
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

No branches or pull requests

1 participant