locky преди 3 години
родител
ревизия
321ea763e5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Controller/ShadowController.py

+ 1 - 1
Controller/ShadowController.py

@@ -117,7 +117,7 @@ def update_device_shadow(request):
             Device_Info.objects.filter(UID=uid).update(NotificationMode=0)
 
             # 关闭AI
-            AiService.objects.filter(uid=uid, use_status=1).update(detect_status=0)
+            AiService.objects.filter(uid=uid, use_status=1).update(detect_status=0, detect_group='')
 
             logger.info('{}重置成功'.format(uid))