From 8dc2b4d0af02ce2357d3da08659f12c94a301ced Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Wed, 5 Jul 2017 12:03:44 +0800 Subject: [PATCH] =?UTF-8?q?#268=20=E4=BF=AE=E5=A4=8DWxCpUserServiceImpl?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=94=A8=E6=88=B7=E7=9A=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E9=97=AE=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, 3 insertions(+), 6 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 c49c1ffd..13009427 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 @@ -42,15 +42,12 @@ public class WxCpUserServiceImpl implements WxCpUserService { this.mainService.post(url, user.toJson()); } - public void deleteOne(String userId) throws WxErrorException { - String url = "https://qyapi.weixin.qq.com/cgi-bin/user/delete?userid=" + userId; - this.mainService.get(url, null); - } - @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/delete?userid=" + userIds[0]; + this.mainService.get(url, null); + return; } String url = "https://qyapi.weixin.qq.com/cgi-bin/user/batchdelete";