update
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user