Skip to content

Commit f002311

Browse files
authored
🐛 #2016 【企业微信】修复第三方应用 getLoginInfo 接口参数问题
1 parent 3f9bba4 commit f002311

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ public WxCpTpUserDetail getUserDetail3rd(String userTicket) throws WxErrorExcept
440440
public WxTpLoginInfo getLoginInfo(String authCode) throws WxErrorException {
441441
JsonObject jsonObject = new JsonObject();
442442
jsonObject.addProperty("auth_code", authCode);
443-
jsonObject.addProperty("access_token", configStorage.getProviderToken());
444-
String responseText = post(configStorage.getApiUrl(GET_LOGIN_INFO), jsonObject.toString());
443+
String access_token = getWxCpProviderToken();
444+
String responseText = post(configStorage.getApiUrl(GET_LOGIN_INFO) + "?access_token=" + access_token, jsonObject.toString());
445445
return WxTpLoginInfo.fromJson(responseText);
446446
}
447447

0 commit comments

Comments
 (0)