iotcat 4 years ago
parent 26ed34948f
commit dbac380d38
  1. 8
      index.js
  2. 9
      taian.js
  3. 8
      uk.js
  4. 9
      xiangyang.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);

@ -0,0 +1,9 @@
const coro = require('./index.js');
var uk = coro({
province: '山东省',
city: '泰安',
sms: ['18118155257', '13371035727', '18888283877'],
mail: ['i@yimian.xyz']
});

@ -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"]
});

@ -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']
});
Loading…
Cancel
Save