소스 검색

设备添加3

chenshibin 4 년 전
부모
커밋
6bbc9d07da
2개의 변경된 파일18개의 추가작업 그리고 2개의 파일을 삭제
  1. 9 1
      Controller/EquipmentManager.py
  2. 9 1
      Controller/EquipmentManagerV3.py

+ 9 - 1
Controller/EquipmentManager.py

@@ -422,7 +422,15 @@ def addInterface(request):
                         'isExist': 1,
                         'userID__userEmail': ''
                     }
-                    res['vod'] = {}
+                    res['vod'] = [
+                        {
+                            "status": 1,
+                            "channel": ChannelIndex,
+                            "endTime": '',
+                            "bucket__content": '',
+                            "uid": UID
+                        }
+                    ]
                     res['isMainUserExists'] = 1
                     return response.json(0, res)
 

+ 9 - 1
Controller/EquipmentManagerV3.py

@@ -126,7 +126,15 @@ class EquipmentManagerV3(View):
                             'isExist': 1,
                             'userID__userEmail': ''
                         }
-                        res['vod'] = {}
+                        res['vod'] = [
+                            {
+                                "status": 1,
+                                "channel": ChannelIndex,
+                                "endTime": '',
+                                "bucket__content": '',
+                                "uid": UID
+                            }
+                        ]
                         res['isMainUserExists'] = 1
                         return response.json(0, res)