mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
🐛 【企业微信】修复corpId2OpenCorpId接口provider_access_token参数错误的问题
This commit is contained in:
parent
4888d1576b
commit
c26b055ccf
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user