From f002311b69e81c375780e2717ecc1317b5c25041 Mon Sep 17 00:00:00 2001 From: Yang Liu <915692722@qq.com> Date: Fri, 26 Feb 2021 11:48:22 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20#2016=20=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E4=BF=AE=E5=A4=8D=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E5=BA=94=E7=94=A8=20getLoginInfo=20=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }