浏览代码

no message

libushang 3 月之前
父节点
当前提交
c572151654
共有 1 个文件被更改,包括 38 次插入0 次删除
  1. 38 0
      routers/api/videoResource/avcon.py

+ 38 - 0
routers/api/videoResource/avcon.py

@@ -281,6 +281,44 @@ async def get_drone_tree(
                 "label": data[0]["group_name"],
                 "children": result1
             })
+
+        result = [
+            {
+                "label": '无人机设备',
+                "children": [
+                {
+                    "label": '茂名市应急管理局',
+                    "children": [
+                    {
+                        "id": "1",
+                        "label": '应急无人机',
+                        "url": "http://19.152.196.223:5050/liveplay.html?liveurl=ws://10.100.100.103:9001/live/mmjk0002@mm.zw.yj_00.flv&channelid=mmjk0002@mm.zw.yj_00"
+                    }
+                    ]
+                },
+                {
+                    "label": '电白区应急管理局',
+                    "children": [
+                    {
+                        "id": "2",
+                        "label": '应急无人机',
+                        "url": "http://19.152.196.223:5050/liveplay.html?liveurl=ws://10.100.100.103:9001/live/mmjk0002@mm.zw.yj_00.flv&channelid=mmjk0002@mm.zw.yj_00"
+                    }
+                    ]
+                },
+                {
+                    "label": '茂南区应急管理局',
+                    "children": [
+                    {
+                        "id": "3",
+                        "label": '应急无人机',
+                        "url": "http://19.152.196.223:5050/liveplay.html?liveurl=ws://10.100.100.103:9001/live/mmjk0002@mm.zw.yj_00.flv&channelid=mmjk0002@mm.zw.yj_00"
+                    }
+                    ]
+                }
+                ]
+            }
+        ]
         
         return {
             "code": 0,