mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-03 04:13:37 +08:00
🐛 #2908 【企业微信】修复用户接口直属领导参数没有被正常序列化的问题
This commit is contained in:
parent
521ea08ba9
commit
64e29af498
@ -260,6 +260,13 @@ public class WxCpUserGsonAdapter implements JsonDeserializer<WxCpUser>, JsonSeri
|
||||
}
|
||||
this.addProperty(o, "main_department", user.getMainDepartment());
|
||||
|
||||
if (user.getDirectLeader() != null && user.getDirectLeader().length > 0) {
|
||||
JsonArray ary = new JsonArray();
|
||||
for (String item : user.getDirectLeader()) {
|
||||
ary.add(item);
|
||||
}
|
||||
o.add("direct_leader", ary);
|
||||
}
|
||||
if (!user.getExtAttrs().isEmpty()) {
|
||||
JsonArray attrsJsonArray = new JsonArray();
|
||||
for (Attr attr : user.getExtAttrs()) {
|
||||
|
Loading…
Reference in New Issue
Block a user