我的修改完成
This commit is contained in:
@@ -569,22 +569,17 @@ public class CommonAppConfig {
|
||||
}
|
||||
|
||||
public void setYolatUserItemList(String yola_list) {
|
||||
if (yola_list == null || yola_list.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
mYolaUserItemList.clear();
|
||||
JSONObject obj = JSON.parseObject(yola_list);
|
||||
|
||||
List<List<UserItemBean>> newList = new ArrayList<>();
|
||||
if (obj != null) {
|
||||
List<UserItemBean> list1 = JSON.parseArray(obj.getString("user_rights"), UserItemBean.class);
|
||||
newList.add(list1);
|
||||
List<UserItemBean> list2 = JSON.parseArray(obj.getString("creation_center"), UserItemBean.class);
|
||||
newList.add(list2);
|
||||
List<UserItemBean> list3 = JSON.parseArray(obj.getString("other_functions"), UserItemBean.class);
|
||||
|
||||
mYolaUserItemList.add(list1);
|
||||
mYolaUserItemList.add(list2);
|
||||
mYolaUserItemList.add(list3);
|
||||
newList.add(list3);
|
||||
}
|
||||
mYolaUserItemList = newList;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user