update
This commit is contained in:
@ -483,6 +483,8 @@ event_type:
|
||||
|
||||
event_level:
|
||||
high:
|
||||
- 192518
|
||||
- 192517
|
||||
- 192515
|
||||
- 192514
|
||||
- 192513
|
||||
|
@ -92,9 +92,9 @@ async def handle_event_detail(event_detail: dict, config: dict, redis: Redis):
|
||||
# 根据设备名称获取 user_ids
|
||||
# 高级事件
|
||||
if event_detail["eventLvl"] == 3:
|
||||
user_all = user_map.get("all", {}).get("high", [])
|
||||
user_all = user_map.get("all", {}).get("high", []) + user_map.get("all", {}).get("all", [])
|
||||
# 接受全部通知的用户
|
||||
user_ids = user_map.get(device_name, {}).get("high", [])
|
||||
user_ids = user_map.get(device_name, {}).get("high", []) + user_map.get(device_name, {}).get("all", [])
|
||||
user_ids = user_ids + user_all
|
||||
# 除高级外均为中级
|
||||
else:
|
||||
|
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "hik-push"
|
||||
version = "1.0.5"
|
||||
version = "1.1.0"
|
||||
description = ""
|
||||
authors = ["quantulr <35954003+quantulr@users.noreply.github.com>"]
|
||||
readme = "README.md"
|
||||
|
Reference in New Issue
Block a user