diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java index c8409d21a..9811eca18 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java @@ -440,8 +440,8 @@ public abstract class BaseWxCpTpServiceImpl implements WxCpTpService, Requ 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); }