mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-05 21:12:09 +08:00
fix notify message
This commit is contained in:
@@ -50,13 +50,13 @@ pushover_send() {
|
||||
_subject="$(printf "*%s*\n" "$_subject" | _json_encode)"
|
||||
_data="{\"token\": \"$PUSHOVER_TOKEN\",\"user\": \"$PUSHOVER_USER\",\"title\": \"$_subject\",\"message\": \"$_content\",\"sound\": \"$PUSHOVER_SOUND\", \"device\": \"$PUSHOVER_DEVICE\", \"priority\": \"$PUSHOVER_PRIORITY\"}"
|
||||
|
||||
response="" #just make shellcheck happy
|
||||
if _post "$_data" "$PUSHOVER_URI"; then
|
||||
if _contains "$response" "{\"status\":1"; then
|
||||
_info "PUSHOVER send success."
|
||||
return 0
|
||||
fi
|
||||
response="$(_post "$_data" "$PUSHOVER_URI")"
|
||||
|
||||
if [ "$?" = "0" ] && _contains "$response" "{\"status\":1"; then
|
||||
_info "PUSHOVER send success."
|
||||
return 0
|
||||
fi
|
||||
|
||||
_err "PUSHOVER send error."
|
||||
_err "$response"
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user