#打卡提醒 @all
curl --request POST 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=key' --header 'Content-Type: application/json' --data '{"msgtype":"text","text":{"content": "【打卡提醒】","mentioned_list":["@all"]}}'
#每日一句 图文消息
response=`curl http://open.iciba.com/dsapi/`
temp1=${response#*content\":\"}
temp1=${temp1%%\"*}
temp2=${response#*note\":\"}
temp2=${temp2%%\"*}
showpic=${response#*picture2\":\"}
showpic=${showpic%%\"*}
picurl=${response#*fenxiang_img\":\"}
picurl=${picurl%%\"*}
curl --request POST 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=key' \
--header 'Content-Type: application/json' \
--data '{"msgtype":"news","news":{"articles":[{"title":"【亲,动动手指,莫忘打卡哟...】","description":"'"$temp1"'\r\n'"$temp2"'","url":"'"$picurl"'","picurl":"'"$showpic"'"}]}}'
crontab -e
*/5 * * * * /home/dev/qa_daka_remind.sh > /dev/null 2>&1 & #每5分钟一次打卡通知