🐛 【企业微信】修复corpId2OpenCorpId接口provider_access_token参数错误的问题

This commit is contained in:
黄天政 2022-11-03 08:59:24 +00:00 committed by binarywang
parent 4888d1576b
commit c26b055ccf

View File

@ -669,7 +669,7 @@ public abstract class BaseWxCpTpServiceImpl<H, P> implements WxCpTpService, Requ
public WxCpTpCorpId2OpenCorpId corpId2OpenCorpId(String corpId) throws WxErrorException {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("corpid", corpId);
String result = post(configStorage.getApiUrl(CORPID_TO_OPENCORPID) +"?provider_access_token=" + this.configStorage.getAccessToken(corpId), jsonObject.toString());
String result = post(configStorage.getApiUrl(CORPID_TO_OPENCORPID) +"?provider_access_token=" + getWxCpProviderToken(), jsonObject.toString());
return WxCpTpCorpId2OpenCorpId.fromJson(result);
}