feat: 增加 PushDeer 自建服务器支持

This commit is contained in:
cyxc1124
2026-03-05 23:44:23 +08:00
parent ed635b871a
commit 270dbd4299
2 changed files with 38 additions and 1 deletions

View File

@@ -27,7 +27,8 @@ logger() {
web_json_post "$url" "$content" &
}
[ -n "$push_Deer" ] && {
url="https://api2.pushdeer.com/message/push"
url="${push_Deer_url%/}"
url="${url:-https://api2.pushdeer.com}/message/push"
content="{\"pushkey\":\"${push_Deer}\",\"text\":\"$log_text\"}"
web_json_post "$url" "$content" &
}