From 464567f4ea62af5ee53ce08da697c0b2dbbbc465 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Tue, 22 Sep 2020 12:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E6=AC=A1=E4=B8=8D=E9=80=80=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 6822d4d..221e5ae 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,9 @@ function tongzhi(info,type){ ### [地址](${baseurl + info.url}) ${new Date().toString()} ` - + if (JSON.stringify(data) === '{}') { + 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)=>{