diff --git a/index.js b/index.js index 70239e3..dbae2f9 100644 --- a/index.js +++ b/index.js @@ -12,10 +12,7 @@ function tongzhi(info,type){ ### [地址](${baseurl + info.url}) ${new Date().toString()} ` - if (JSON.stringify(buglist) === '{}') { - - return ; - } + console.log({text:title,desp:data}) // console.log(`https://sc.ftqq.com/SCU48648T7fd03646ac5b5ea64eabc66150de705a5cb02e1c89ca0.send?text=${title}&desp=${data}`) axios.post(`https://sc.ftqq.com/SCU48648T7fd03646ac5b5ea64eabc66150de705a5cb02e1c89ca0.send`,`text=${title}&desp=${data}`).then((res)=>{ @@ -54,7 +51,7 @@ function jiexi(html){ function getHtml(){ axios.get("http://ztnew.sdbairui.com/bug-browse-3-0-unresolved-0-id_desc-2-2000.html",{headers:{Cookie: 'lang=zh-cn; device=desktop; theme=default; keepLogin=on; za=xuebaoxin; preBranch=0; preProductID=3; lastProduct=3; windowWidth=1901; windowHeight=916; pagerBugBrowse=2000; qaBugOrder=id_asc; zentaosid=f05h8p09hoabg0m3a4vaksshhm; zp=2a74a2498be1d8c415d5b3dd761e4fdc7ab27cc8'}}).then((res)=>{ - // console.log(res.data) + console.log(res.data) let html = res.data; jiexi(html) })