Skip to content

Commit

Permalink
🐛 #2016 【企业微信】修复第三方应用 getLoginInfo 接口参数问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Bleoo authored Feb 26, 2021
1 parent 3f9bba4 commit f002311
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ public WxCpTpUserDetail getUserDetail3rd(String userTicket) throws WxErrorExcept
public WxTpLoginInfo getLoginInfo(String authCode) throws WxErrorException {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("auth_code", authCode);
jsonObject.addProperty("access_token", configStorage.getProviderToken());
String responseText = post(configStorage.getApiUrl(GET_LOGIN_INFO), jsonObject.toString());
String access_token = getWxCpProviderToken();
String responseText = post(configStorage.getApiUrl(GET_LOGIN_INFO) + "?access_token=" + access_token, jsonObject.toString());
return WxTpLoginInfo.fromJson(responseText);
}

Expand Down

0 comments on commit f002311

Please sign in to comment.