diff --git a/index.js b/index.js index 3ab9a94..af680fb 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ let buglist = {} function tongzhi(info,type){ - let title = `${type == 1 ? '新增bug' + info.zp : '指派到:' + info.zp},${info.title}`; + let title = `${type == 1 ? '新增bug' + info.zp : '指派到:' + info.zp},${info.title} | ` + new Date().getTime(); let data = ` ### 创建人 ${info.cj} ### 指派给 ${info.zp} @@ -13,6 +13,7 @@ function tongzhi(info,type){ ${new Date().toString()} ` if (JSON.stringify(buglist) === '{}') { + return ; } console.log({text:title,desp:data}) @@ -62,3 +63,10 @@ function getHtml(){ setInterval(()=>{ getHtml() },60 * 1000) + +axios.post(`https://sc.ftqq.com/SCU48648T7fd03646ac5b5ea64eabc66150de705a5cb02e1c89ca0.send`,`text=测试启动 | ${+ new Date().getTime()}&desp=嘤嘤嘤 | ${new Date().getTime()}`).then((res)=>{ + console.log(res.data) +},(err)=>{ + console.log(err) +}) +getHtml() \ No newline at end of file