From 6954e81384bd11446b0e0516e6dd139867626028 Mon Sep 17 00:00:00 2001 From: quantulr <35954003+quantulr@users.noreply.github.com> Date: Thu, 11 Apr 2024 09:57:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B8=A9=E5=BA=A6=E6=8A=A5?= =?UTF-8?q?=E8=AD=A6=E4=BA=8B=E4=BB=B6=E6=8E=A8=E9=80=81=E9=97=B4=E9=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hik_push/push_notification.py | 3 ++- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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"