Skip to content

weixin-java-cp WxCpUserServiceImpl 删除用户的接口有问题 #268

Closed

Description

@axiu90

单个用户删除之后,还会再发一遍批量删除的请求
@OverRide
public void delete(String... userIds) throws WxErrorException {
if (userIds.length == 1) {
this.deleteOne(userIds[0]);
}

String url = "https://qyapi.weixin.qq.com/cgi-bin/user/batchdelete";
JsonObject jsonObject = new JsonObject();
JsonArray jsonArray = new JsonArray();
for (String userid : userIds) {
  jsonArray.add(new JsonPrimitive(userid));
}
jsonObject.add("useridlist", jsonArray);
this.mainService.post(url, jsonObject.toString());

}

Activity

  1. binarywang commented on Jul 5, 2017

    @binarywang
    Owner

    感谢及时提出此问题,稍后进行修复

  2. added a commit that references this issue on Jul 5, 2017
  3. self-assigned this
    on Jul 6, 2017
  4. binarywang commented on Jul 8, 2017

    @binarywang
    Owner

    2.7.4.BETA版本已修复

  5. added a commit that references this issue on Sep 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions