添加了开始通知
This commit is contained in:
10
index.js
10
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()
|
||||
Reference in New Issue
Block a user