|
@@ -440,8 +440,8 @@ public abstract class BaseWxCpTpServiceImpl<H, P> 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);
|
|
|
}
|
|
|
|