From fa6d57d809c051e7f5b339ac63dd876633155b3f Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 9 Apr 2022 11:13:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dshell=E5=8F=91=E9=80=81?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/api.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/api.sh b/shell/api.sh index a08db49f..546e0540 100755 --- a/shell/api.sh +++ b/shell/api.sh @@ -178,7 +178,7 @@ update_cron() { notify_api() { local title=$1 - local content=$1 + local content=$2 local currentTimeStamp=$(date +%s) local api=$( curl -s --noproxy "*" "http://0.0.0.0:5600/api/system/notify?t=$currentTimeStamp" \ @@ -196,9 +196,9 @@ notify_api() { code=$(echo $api | jq -r .code) message=$(echo $api | jq -r .message) if [[ $code == 200 ]]; then - echo -e "成功" + echo -e "通知发送成功" else - echo -e "失败(${message})" + echo -e "通知失败(${message})" fi }