Ver Fonte

重置消息提醒

locky há 4 anos atrás
pai
commit
389658fdc8
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Controller/ShadowController.py

+ 1 - 1
Controller/ShadowController.py

@@ -85,7 +85,7 @@ def update_device_shadow(request):
                            voice_prompt_leave=0)
 
         # 重置消息提醒
-        Device_Info.filter(UID=uid).update(NotificationMode=0)
+        Device_Info.objects.filter(UID=uid).update(NotificationMode=0)
 
         # 删除uid_set数据
         UidSetModel.objects.filter(uid=uid).delete()