Explorar el Código

增加是否过滤一分钟判断2

chenshibin hace 4 años
padre
commit
e3dc4ba516
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. 5 3
      Controller/DetectControllerV2.py

+ 5 - 3
Controller/DetectControllerV2.py

@@ -174,7 +174,12 @@ class NotificationView(View):
         if not nickname:
             nickname = uid
 
+
+
         if detect_group is not None:
+            if is_filter == 0:
+                have_dkey = 1
+
             if have_dkey:
                 detect_med_type = 1  # 1为存库不推送
             else:
@@ -261,9 +266,6 @@ class NotificationView(View):
             push_server_status = 0
             #推送
 
-            if is_filter == 0:
-                detect_med_type = 2
-
             if detect_med_type == 2 or detect_med_type == 0:
                 if push_type == 0:  # ios apns
                     print('do_apns')