Skip to content

Commit

Permalink
🐛 #1152 修复企业微信用户批量删除接口异常问题
Browse files Browse the repository at this point in the history
  • Loading branch information
binarywang committed Aug 11, 2019
1 parent 8ec44fb commit 5cfb964
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
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;
Expand Down Expand Up @@ -61,7 +60,7 @@ public void delete(String... userIds) throws WxErrorException {
}

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
Expand Down Expand Up @@ -94,7 +93,8 @@ public List<WxCpUser> listByDepartment(Long departId, Boolean fetchChild, Intege
}

@Override
public List<WxCpUser> listSimpleByDepartment(Long departId, Boolean fetchChild, Integer status) throws WxErrorException {
public List<WxCpUser> listSimpleByDepartment(Long departId, Boolean fetchChild, Integer status)
throws WxErrorException {
String params = "";
if (fetchChild != null) {
params += "&fetch_child=" + (fetchChild ? "1" : "0");
Expand All @@ -117,7 +117,8 @@ public List<WxCpUser> listSimpleByDepartment(Long departId, Boolean fetchChild,
}

@Override
public WxCpInviteResult invite(List<String> userIds, List<String> partyIds, List<String> tagIds) throws WxErrorException {
public WxCpInviteResult invite(List<String> userIds, List<String> partyIds, List<String> tagIds)
throws WxErrorException {
JsonObject jsonObject = new JsonObject();
if (userIds != null) {
JsonArray jsonArray = new JsonArray();
Expand Down

0 comments on commit 5cfb964

Please sign in to comment.