Explorar el Código

复位关闭移动侦测推送

locky hace 2 años
padre
commit
b1d5d48471
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      Controller/ShadowController.py

+ 2 - 1
Controller/ShadowController.py

@@ -105,7 +105,8 @@ def update_device_shadow(request):
             if voice_qs.exists():
                 voice_qs.delete()
 
-            # 关闭移动侦测的消息提醒
+            # 关闭移动侦测推送
+            UidSetModel.objects.filter(uid=uid).update(detect_status=0)
             Device_Info.objects.filter(UID=uid).update(NotificationMode=0)
 
             # 关闭AI