Browse Source

:bug: 修复通讯录搜索接口参数问题

OrangeBadBad 4 years ago
parent
commit
7f4b576fd6

+ 1 - 1
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpContactServiceImpl.java

@@ -22,7 +22,7 @@ public class WxCpTpContactServiceImpl implements WxCpTpContactService {
   @Override
   public WxCpTpContactSearchResp contactSearch(WxCpTpContactSearch wxCpTpContactSearch) throws WxErrorException {
     String responseText =
-      mainService.post(mainService.getWxCpTpConfigStorage().getApiUrl(CONTACT_SEARCH) + "?provider_access_token=" + mainService.getWxCpTpConfigStorage().getCorpSecret(), wxCpTpContactSearch.toJson());
+      mainService.post(mainService.getWxCpTpConfigStorage().getApiUrl(CONTACT_SEARCH) + "?provider_access_token=" + mainService.getWxCpProviderToken(), wxCpTpContactSearch.toJson());
     return WxCpTpContactSearchResp.fromJson(responseText);
   }