We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35c1be2 commit 99b4427Copy full SHA for 99b4427
1 file changed
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java
@@ -42,15 +42,12 @@ public void update(WxCpUser user) throws WxErrorException {
42
this.mainService.post(url, user.toJson());
43
}
44
45
- public void deleteOne(String userId) throws WxErrorException {
46
- String url = "https://qyapi.weixin.qq.com/cgi-bin/user/delete?userid=" + userId;
47
- this.mainService.get(url, null);
48
- }
49
-
50
@Override
51
public void delete(String... userIds) throws WxErrorException {
52
if (userIds.length == 1) {
53
- this.deleteOne(userIds[0]);
+ String url = "https://qyapi.weixin.qq.com/cgi-bin/user/delete?userid=" + userIds[0];
+ this.mainService.get(url, null);
+ return;
54
55
56
String url = "https://qyapi.weixin.qq.com/cgi-bin/user/batchdelete";
0 commit comments