瀏覽代碼

设备复位关闭AI2

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))