|
@@ -75,14 +75,18 @@ def update_device_shadow(request):
|
|
is_reset = request_dict.get('is_reset', None)
|
|
is_reset = request_dict.get('is_reset', None)
|
|
# 传1则重置设备信息
|
|
# 传1则重置设备信息
|
|
if is_reset == '1':
|
|
if is_reset == '1':
|
|
- # 重置语音提示
|
|
|
|
logger = logging.getLogger('info')
|
|
logger = logging.getLogger('info')
|
|
logger.info('设备重置')
|
|
logger.info('设备重置')
|
|
|
|
+
|
|
|
|
+ # 重置语音提示
|
|
uid_channel_qs = UidChannelSetModel.objects.filter(uid__uid=uid)
|
|
uid_channel_qs = UidChannelSetModel.objects.filter(uid__uid=uid)
|
|
if uid_channel_qs.exists():
|
|
if uid_channel_qs.exists():
|
|
uid_channel_qs.update(voice_prompt_intelligent_mute=0, voice_prompt_status=0, voice_prompt_enter=0,
|
|
uid_channel_qs.update(voice_prompt_intelligent_mute=0, voice_prompt_status=0, voice_prompt_enter=0,
|
|
voice_prompt_leave=0)
|
|
voice_prompt_leave=0)
|
|
|
|
|
|
|
|
+ # 重置消息提醒
|
|
|
|
+ Device_Info.filter(UID=uid).update(NotificationMode=0)
|
|
|
|
+
|
|
# 删除uid_set数据
|
|
# 删除uid_set数据
|
|
UidSetModel.objects.filter(uid=uid).delete()
|
|
UidSetModel.objects.filter(uid=uid).delete()
|
|
|
|
|