Skip to content

Commit 8dc2b4d

Browse files
committed
binarywang#268 修复WxCpUserServiceImpl删除用户的接口问题
1 parent 55cfcb9 commit 8dc2b4d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,12 @@ public void update(WxCpUser user) throws WxErrorException {
4242
this.mainService.post(url, user.toJson());
4343
}
4444

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-
5045
@Override
5146
public void delete(String... userIds) throws WxErrorException {
5247
if (userIds.length == 1) {
53-
this.deleteOne(userIds[0]);
48+
String url = "https://qyapi.weixin.qq.com/cgi-bin/user/delete?userid=" + userIds[0];
49+
this.mainService.get(url, null);
50+
return;
5451
}
5552

5653
String url = "https://qyapi.weixin.qq.com/cgi-bin/user/batchdelete";

0 commit comments

Comments
 (0)