mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-07-18 22:35:48 +08:00
#268 修复WxCpUserServiceImpl删除用户的接口问题
This commit is contained in:
parent
55cfcb9abd
commit
8dc2b4d0af
@ -42,15 +42,12 @@ public class WxCpUserServiceImpl implements WxCpUserService {
|
|||||||
this.mainService.post(url, user.toJson());
|
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
|
@Override
|
||||||
public void delete(String... userIds) throws WxErrorException {
|
public void delete(String... userIds) throws WxErrorException {
|
||||||
if (userIds.length == 1) {
|
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";
|
String url = "https://qyapi.weixin.qq.com/cgi-bin/user/batchdelete";
|
||||||
|
Loading…
Reference in New Issue
Block a user