From dbac380d38798393ab1200becdb434760addb66d Mon Sep 17 00:00:00 2001 From: iotcat Date: Mon, 3 Feb 2020 17:06:23 +0000 Subject: [PATCH] fin --- index.js | 8 ++++---- taian.js | 9 +++++++++ uk.js | 8 ++++++++ xiangyang.js | 9 +++++++++ 4 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 taian.js create mode 100644 uk.js create mode 100644 xiangyang.js diff --git a/index.js b/index.js index caf74d9..4e8925a 100644 --- a/index.js +++ b/index.js @@ -2,12 +2,12 @@ var get = (o_params)=>{ var o = { province: null, city: null, - sms: ['18118155257'], - mail: ['i@yimian.xyz'], + sms: [], + mail: [], success: ()=>{}, error: ()=>{}, url: 'https://lab.isaaclin.cn/nCoV/api/area', - interval: 5000, + interval: 50000, debug: false } @@ -54,7 +54,7 @@ var get = (o_params)=>{ var info = await getInfo(); console.log(info); - if(info.updateTime == updateTime){ + if(info.updateTime != updateTime){ updateTime = info.updateTime; fs.writeFileSync(fileBck, updateTime); await push(info); diff --git a/taian.js b/taian.js new file mode 100644 index 0000000..1d425f5 --- /dev/null +++ b/taian.js @@ -0,0 +1,9 @@ +const coro = require('./index.js'); + +var uk = coro({ + province: '山东省', + city: '泰安', + sms: ['18118155257', '13371035727', '18888283877'], + mail: ['i@yimian.xyz'] +}); + diff --git a/uk.js b/uk.js new file mode 100644 index 0000000..a324b04 --- /dev/null +++ b/uk.js @@ -0,0 +1,8 @@ +const coro = require('./index.js'); + +var uk = coro({ + province: '英国', + sms: ['18118155257'], + mail: ['i@yimian.xyz', 'hao.zheng17@student.xjtlu.edu.cn', "mingranjia@163.com", "boyao1999@163.com"] +}); + diff --git a/xiangyang.js b/xiangyang.js new file mode 100644 index 0000000..bf4578d --- /dev/null +++ b/xiangyang.js @@ -0,0 +1,9 @@ +const coro = require('./index.js'); + +var uk = coro({ + province: '山东省', + city: '泰安', + mail: ['i@yimian.xyz', 'hao.zheng17@student.xjtlu.edu.cn'], + sms: ['18118155257'] +}); +