Browse Source

消息提醒设置默认不通知移动侦测

zhangdongming 10 months ago
parent
commit
c62b0ef4e2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Controller/DetectControllerV2.py

+ 3 - 1
Controller/DetectControllerV2.py

@@ -188,10 +188,12 @@ class DetectControllerViewV2(View):
                     uid_set_data['msg_notify'] = msg_data
                 elif status == 1 and uid_set_qs.first().detect_status == 0:
                     uid_set_data['detect_interval'] = 60
+                    types = ALGORITHM_COMBO_TYPES
+                    types.remove(51)
                     msg_data = {'appPush': 1,
                                 'pushTime': {'allDay': 1, 'repeat': 127, 'endTime': 0, 'timeZone': '+08.00',
                                              'startTime': 0},
-                                'eventTypes': {'device': ALGORITHM_COMBO_TYPES, 'aiCloud': 1}
+                                'eventTypes': {'device': types, 'aiCloud': 1}
                                 }
                     uid_set_data['msg_notify'] = msg_data
                 uid_set_id = uid_set_qs[0].id