Sfoglia il codice sorgente

查询设备列表返回linked_channel

locky 1 mese fa
parent
commit
455cc7dc19
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      Service/UserDeviceService.py

+ 3 - 1
Service/UserDeviceService.py

@@ -103,7 +103,7 @@ class UserDeviceService:
                     'OutdoorModel', 'WIFIName', 'isDetector',
                     'DetectorRank', 'is_human', 'is_custom_voice',
                     'is_ptz', 'double_wifi', 'is_ai', 'mobile_4g',
-                    'ai_type')
+                    'ai_type', 'linked_channel')
 
     @classmethod
     def query_device_channel(cls, uid_list):
@@ -144,6 +144,7 @@ class UserDeviceService:
                 'is_ai': us['is_ai'],
                 'ai_type': us['ai_type'],
                 'isSupportFourPoint': us['isSupportFourPoint'],
+                'linked_channel': us['linked_channel'],
             }
             uv_dict[us['uid']]['channels'] = cls.query_device_channel_set(us['id'])
         return uv_dict
@@ -261,6 +262,7 @@ class UserDeviceService:
         p_vo['is_ai'] = uv_dict[p_uid]['is_ai']
         p_vo['ai_type'] = uv_dict[p_uid]['ai_type']
         p_vo['isSupportFourPoint'] = uv_dict[p_uid]['isSupportFourPoint']
+        p_vo['linked_channel'] = uv_dict[p_uid]['linked_channel']
         # 设备昵称 调用影子信息昵称,先阶段不可
         if uv_dict[p_uid]['nickname']:
             p_vo['NickName'] = uv_dict[p_uid]['nickname']