File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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" ;
You can’t perform that action at this time.
0 commit comments