diff --git a/config/push.ini.example b/config/push.ini.example index 25dc681..ffc8e7c 100644 --- a/config/push.ini.example +++ b/config/push.ini.example @@ -35,6 +35,8 @@ secret= [bark] api_url=https://api.day.app token=ssXXX +#bark通知图标,可选genshin,mihoyobbs,hokai2,honkai3rd,tears_of_themis +icon=genshin [gotify] api_url=http://xxx.xxx.cn diff --git a/push.py b/push.py index 52c0678..93a5449 100644 --- a/push.py +++ b/push.py @@ -174,7 +174,7 @@ def dingrobot(send_title, push_message): # Bark def bark(send_title, push_message): rep = http.get( - url=f'{cfg.get("bark", "api_url")}/{cfg.get("bark", "token")}/{send_title}/{push_message}' + url=f'{cfg.get("bark", "api_url")}/{cfg.get("bark", "token")}/{send_title}/{push_message}?icon=https://cdn.jsdelivr.net/gh/tanmx/pic@main/mihoyo/{cfg.get("bark", "icon")}.png' ).json() log.info(f"推送结果:{rep.get('message')}")