mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-10-21 21:31:51 +00:00
fix(notify): waha: tighten response check
This commit is contained in:
1 parent
237f2d9c3b
commit
d45b6fe8e6
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||