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

兼容老版本算法类型

zhangdongming преди 2 години
родител
ревизия
5c2bd06a11
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Service/DevicePushService.py

+ 1 - 1
Service/DevicePushService.py

@@ -175,7 +175,7 @@ class DevicePushService:
         algorithm = False
         if ai_type > 0 and detection == 1:
             algorithm = True
-        elif ai_type == 7 or ai_type == 47:
+        elif (ai_type == 7 and event_type <= 7) or (ai_type == 47 and event_type <= 47) or (detection == 1):
             algorithm = True
         if not algorithm:
             return ',' + str(event_type) + ','