main
黄海 7 months ago
parent c4659ccfa8
commit 1fb9ccb1f7

@ -20,7 +20,6 @@ public class YunXiao {
public static void traverseTree(JSONArray treeArray) { public static void traverseTree(JSONArray treeArray) {
for (Object item : treeArray) { for (Object item : treeArray) {
JSONObject node = (JSONObject) item; JSONObject node = (JSONObject) item;
JSONObject jsonObj = new JSONObject(); JSONObject jsonObj = new JSONObject();
jsonObj.put("nodeId", node.getString("key")); jsonObj.put("nodeId", node.getString("key"));
jsonObj.put("nodeName", node.getString("title")); jsonObj.put("nodeName", node.getString("title"));
@ -34,7 +33,6 @@ public class YunXiao {
traverseTree(children); traverseTree(children);
} }
} }
} }

Loading…
Cancel
Save