소스 검색

兼容老版本推送移动侦测问题

zhangdongming 2 년 전
부모
커밋
b84f8e9c3e
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 event_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) + ','