From b38b4517485f26c328492a655c9a014863148f78 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Wed, 23 Sep 2020 09:49:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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