Closed
Description
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());