mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
#1047企业微信邀请成员接口结果中invaliduser字段类型调整
This commit is contained in:
parent
ca346abad6
commit
3410692f2d
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user