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

企业微信第三方应用获取登录用户信息接口的方法里的令牌获取错误 #1969

Closed
tanyun1111 opened this issue Jan 14, 2021 · 1 comment

Comments

@tanyun1111
Copy link

tanyun1111 commented Jan 14, 2021

public WxTpLoginInfo getLoginInfo(String authCode) throws WxErrorException {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("auth_code", authCode);
jsonObject.addProperty("access_token", configStorage.getAccessToken(authCode));
String responseText = post(configStorage.getApiUrl(GET_LOGIN_INFO), jsonObject.toString());
return WxTpLoginInfo.fromJson(responseText);
}

jsonObject.addProperty("access_token", configStorage.getAccessToken(authCode));
这行的获取令牌应该是
jsonObject.addProperty("access_token", configStorage.getProviderAccessToken());

@binarywang
Copy link
Member

欢迎直接提交PR

@binarywang binarywang changed the title WxTpLoginInfo getLoginInfo(String authCode)方法里的令牌获取错误 企业微信第三方应用获取登录用户信息接口的方法里的令牌获取错误 Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants