资源加载中... loading...

钉钉推送

Author: 一拳男孩, Date: 2019-07-29 19:38:03
Tags: PushMessage

  • $.ddNotice(title, content)

title: 字符串类型,推送的标题 content: 数组类型,markdown格式


$.ddNotice = function(title, content) {
    content = content == null ? title : content instanceof Array ? content.join('\n') : content
    HttpQuery(DING_URI, {
        method: 'POST',
        timeout: 3000,
        data: JSON.stringify({
            msgtype: 'markdown',
            markdown: {
                title: title,
                text: content
            }
        })
    }, null, 'Content-Type: application/json')
}
template: strategy.tpl:40:21: executing "strategy.tpl" at <.api.GetStrategyListByName>: wrong number of args for GetStrategyListByName: want 7 got 6