浏览代码

修改添加设备字段接口报错

peng 2 年之前
父节点
当前提交
c30e9396f2
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      Controller/AWS/KVSController.py
  2. 2 1
      Controller/EquipmentManager.py

+ 1 - 1
Controller/AWS/KVSController.py

@@ -180,7 +180,7 @@ class KVSView(View):
             return self.create_media(request_dict, response)
         elif operation == 'update-data-retention':  # 修改视频流数据保留时间
             return self.update_data_retention(request_dict, response)
-        elif operation == 'get-hls-midea':  # 修改视频流数据保留时间
+        elif operation == 'get-hls-midea':  # 获取视频播放地址
             return self.get_hls_midea_url(request_dict, response)
         else:
             tko = TokenObject(

+ 2 - 1
Controller/EquipmentManager.py

@@ -425,6 +425,7 @@ def addInterface(request):
                 if is_bind.exists():
                     primaryUserID = is_bind[0]['primaryUserID']
                     primaryMaster = is_bind[0]['primaryMaster']
+                    Type = is_bind[0]['Type']
                     isShare = True
 
                 isusermain = False
@@ -483,7 +484,7 @@ def addInterface(request):
                             'channel': ChannelIndex,
                             'nickname': NickName,
                             'version': version,
-                            'device_type': is_bind[0]['Type'],
+                            'device_type': Type,
                             'tb_country': country
                         }
                         UidSetModel.objects.create(**uid_set_create_dict)