mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-21 11:07:37 +08:00
#1047企业微信邀请成员接口结果中invaliduser字段类型调整
This commit is contained in:
@@ -37,7 +37,7 @@ public class WxCpInviteResult implements Serializable {
|
||||
private String errMsg;
|
||||
|
||||
@SerializedName("invaliduser")
|
||||
private String invalidUsers;
|
||||
private String[] invalidUsers;
|
||||
|
||||
@SerializedName("invalidparty")
|
||||
private String[] invalidParties;
|
||||
@@ -45,16 +45,4 @@ public class WxCpInviteResult implements Serializable {
|
||||
@SerializedName("invalidtag")
|
||||
private String[] invalidTags;
|
||||
|
||||
public List<String> getInvalidUserList() {
|
||||
return this.content2List(this.invalidUsers);
|
||||
}
|
||||
|
||||
private List<String> content2List(String content) {
|
||||
if (StringUtils.isBlank(content)) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
return Splitter.on("|").splitToList(content);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user