Skip to content

Commit

Permalink
fix: 修改curl请求格式,使用JSON数据发送secret和package_name
Browse files Browse the repository at this point in the history
  • Loading branch information
KodateMitsuru committed Jan 6, 2025
1 parent d99c7a7 commit 922570e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sleepy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ while true;do
PACKAGE_NAME=${PACKAGE_NAME%\'*}
# 输出一下PACKAGE_NAME
echo "$PACKAGE_NAME"
curl -X POST "$URL?secret=$SECRET&status=$PACKAGE_NAME"
curl -X POST "$URL" -H "Content-type: application/json" -d '{"secret":"'"$SECRET"'","package":"'"$PACKAGE_NAME"'"}' #防止PACKAGE_NAME中有特殊字符
fi
sleep 1
done

0 comments on commit 922570e

Please sign in to comment.