Przeglądaj źródła

解决DVR推送间隔2

tanghongbin 5 lat temu
rodzic
commit
742a0c60a3
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      Controller/DetectController.py

+ 2 - 1
Controller/DetectController.py

@@ -125,7 +125,8 @@ class NotificationView(View):
         now_time = int(time.time())
         now_time = int(time.time())
         if not nickname:
         if not nickname:
             nickname = uid
             nickname = uid
-        if detect_group:
+
+        if detect_group is not None:
             if have_dkey:
             if have_dkey:
                 detect_med_type = 1  # 1为存库不推送
                 detect_med_type = 1  # 1为存库不推送
             else:
             else: