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