From c6a4f4548fe9ef9c250e5358627059223f8daa40 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 11 Aug 2019 11:25:52 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20#1152=20=E4=BF=AE=E5=A4=8D=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E7=94=A8=E6=88=B7=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8E=A5=E5=8F=A3=E5=BC=82=E5=B8=B8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java index c75f7566..b9844d39 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java @@ -10,7 +10,6 @@ import me.chanjar.weixin.cp.api.WxCpUserService; import me.chanjar.weixin.cp.bean.WxCpInviteResult; import me.chanjar.weixin.cp.bean.WxCpUser; import me.chanjar.weixin.cp.bean.WxCpUserExternalContactInfo; -import me.chanjar.weixin.cp.constant.WxCpApiPathConsts; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import java.util.List; @@ -61,7 +60,7 @@ public class WxCpUserServiceImpl implements WxCpUserService { } jsonObject.add("useridlist", jsonArray); - this.mainService.post(USER_BATCH_DELETE, jsonObject.toString()); + this.mainService.post(this.mainService.getWxCpConfigStorage().getApiUrl(USER_BATCH_DELETE), jsonObject.toString()); } @Override @@ -94,7 +93,8 @@ public class WxCpUserServiceImpl implements WxCpUserService { } @Override - public List listSimpleByDepartment(Long departId, Boolean fetchChild, Integer status) throws WxErrorException { + public List listSimpleByDepartment(Long departId, Boolean fetchChild, Integer status) + throws WxErrorException { String params = ""; if (fetchChild != null) { params += "&fetch_child=" + (fetchChild ? "1" : "0"); @@ -117,7 +117,8 @@ public class WxCpUserServiceImpl implements WxCpUserService { } @Override - public WxCpInviteResult invite(List userIds, List partyIds, List tagIds) throws WxErrorException { + public WxCpInviteResult invite(List userIds, List partyIds, List tagIds) + throws WxErrorException { JsonObject jsonObject = new JsonObject(); if (userIds != null) { JsonArray jsonArray = new JsonArray();