File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments