|
@@ -809,12 +809,13 @@ class EquipmentManagerV3(View):
|
|
|
p['ucode'] = ''
|
|
|
p['View_Password'] = self.encrypt_pwd(p['View_Password'])
|
|
|
|
|
|
- # 判断设备是否支持4G
|
|
|
- uid_set_qs = UidSetModel.objects.filter(uid=p['UID']).values('mobile_4g')
|
|
|
+ # 判断设备是否支持4G和查询移动侦测状态
|
|
|
+ uid_set_qs = UidSetModel.objects.filter(uid=p['UID']).values('mobile_4g', 'detect_status')
|
|
|
if uid_set_qs.exists():
|
|
|
uid_set_qs = uid_set_qs.first()
|
|
|
if uid_set_qs['mobile_4g'] == 1:
|
|
|
p['isCameraOpenCloud'] = 0
|
|
|
+ p['NotificationMode'] = uid_set_qs['detect_status']
|
|
|
data.append(p)
|
|
|
result = data
|
|
|
return response.json(0, result)
|