You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
374 B

#!/bin/bash
feiShu_Pusher()
{
CODE=$1 #容器编号
MESSAGE=$2 #推送内容
URL=https://open.feishu.cn/open-apis/bot/v2/hook/29f15345-118d-4390-b2e3-7df4d9301546
curl -X POST -H "Content-Type: application/json" \
-d '{"msg_type":"text","content":{"text":"['容器:${CODE}']:'${MESSAGE}'"}}' \
${URL}
}
feiShu_Pusher $1 $2