mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-08-13 12:33:30 +02:00
fix(notify): waha: tighten response check
This commit is contained in:
parent
237f2d9c3b
commit
d45b6fe8e6
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ waha_send() {
|
|||
_waha_url="${WAHA_URL}/api/sendText"
|
||||
response="$(_post "$_data" "$_waha_url" "" "POST" "application/json")"
|
||||
|
||||
if [ "$?" = "0" ] && _contains "$response" "id"; then
|
||||
if [ "$?" = "0" ] && _contains "$response" "\"id\""; then
|
||||
_info "waha send success."
|
||||
return 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue