diff --git a/hik_push/push_notification.py b/hik_push/push_notification.py index 321e530..a23d206 100644 --- a/hik_push/push_notification.py +++ b/hik_push/push_notification.py @@ -76,7 +76,8 @@ async def handle_event_detail(event_detail: dict, config: dict, redis: Redis): # 如果事件类型为区域入侵或吸烟or打电话 if event_type == 131588 or event_type == 422400002: await redis.set(name=f"hik-push-interval:{device_name}:{event_type}", value=event_detail["happenTime"], ex=80) - + elif event_type == 192518 or event_type == 192517: + await redis.set(name=f"hik-push-interval:{device_name}:{event_type}", value=event_detail["happenTime"], ex=60) # 添加regionName if "srcName" in event_detail: event_detail["regionName"] = event_detail["srcName"] diff --git a/pyproject.toml b/pyproject.toml index 8ca5cdf..267f990 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hik-push" -version = "1.1.0" +version = "1.2.0" description = "" authors = ["quantulr <35954003+quantulr@users.noreply.github.com>"] readme = "README.md"