Преглед на файлове

转移AI服务后,通知转出设备关闭AI

peng преди 1 година
родител
ревизия
34add34361
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Controller/CloudTransfer.py

+ 1 - 1
Controller/CloudTransfer.py

@@ -248,7 +248,7 @@ class cloudTestView(View):
                 # 转移AI服务
                 if old_ai_service.exists() and new_uid_set[0]['is_ai'] != 2:
                     AiService.objects.filter(id=old_ai_service[0]['id']).update(uid=new_uid, detect_status=0,
-                                                                                detect_group='1', detect_interval=60)
+                                                                                detect_group='', detect_interval=60)
                     msg = {'commandType': 'AIDisable'}
                     thing_name = CommonService.query_serial_with_uid(old_uid)  # 存在序列号则为使用序列号作为物品名
                     topic_name = 'ansjer/generic/{}'.format(thing_name)