deleted: ShellCrash_PR

modified:   scripts/start.sh
This commit is contained in:
CK
2024-12-14 15:25:02 +08:00
parent 6752593928
commit f646238503
2 changed files with 3 additions and 1 deletions

View File

@@ -129,6 +129,9 @@ logger() { #日志工具
webpush "$url" "$content" &
}
[ -n "$push_SynoChat" ] && {
# url="${push_ChatURL}"
# content="payload={\"text\":\"${log_text}\", \"user_ids\":[${push_ChatUSERID}]}"
# webpush "$url" "$content" &
curl -X POST "${push_ChatURL}/webapi/entry.cgi?api=SYNO.Chat.External&method=chatbot&version=2&token=${push_ChatTOKEN}" -H 'content-Type: application/json' -d "payload={\"text\":\"${log_text}\", \"user_ids\":[${push_ChatUSERID}]}" >/dev/null 2>&1
}
} &