#!/bin/bash
day=`date "+%Y-%m-%d %H:%M:%S"`
TOKEN="https://oapi.dingtalk.com/robot/send?access_token=fd69f..."
INFO="test"
#DING="curl -H \"Content-Type: application/json\" -X POST --data '{\"msgtype\":\"markdown\",\"markdown\":{\"title\":\"短信请求\",\"text\":\"$day $INFO @186...\"},\"at\":{\"atMobiles\":[\"186...\"],\"isAtAll\":false}}' ${TOKEN}"
DING="curl -H \"Content-Type: application/json\" -X POST --data '{\"msgtype\":\"text\",\"at\":{\"atMobiles\":[\"186...\"],\"isAtAll\":false},\"text\":{\"content\":\"$day $INFO\"}}' ${TOKEN}"
eval $DING