Browse Source

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

chenshibin 4 years ago
parent
commit
302b81829a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Controller/DetectControllerV2.py

+ 2 - 2
Controller/DetectControllerV2.py

@@ -66,7 +66,7 @@ class NotificationView(View):
         company_secrete = request_dict.get('company_secrete', None)
         region = request_dict.get('region', None)
         is_filter = request_dict.get('is_filter', 1)
-
+        is_filter = int(is_filter)
         if not region:
             return JsonResponse(status=200, data={'code': 404, 'msg': 'region is not exist'})
         region = int(region)
@@ -178,7 +178,7 @@ class NotificationView(View):
 
         if detect_group is not None:
             if is_filter == 0:
-                have_dkey = 1
+                have_dkey = 0
 
             if have_dkey:
                 detect_med_type = 1  # 1为存库不推送