change base to confirmedCount

master
iotcat 4 years ago
parent fd15b042fa
commit e00b94aef3
  1. 4
      index.js
  2. 2
      uk.js
  3. 2
      xiangyang.js

@ -54,8 +54,8 @@ var get = (o_params)=>{
var info = await getInfo(); var info = await getInfo();
//console.log(info); //console.log(info);
if(info.updateTime != updateTime){ if(info.confirmedCount > updateTime){
updateTime = info.updateTime; updateTime = info.confirmedCount;
fs.writeFileSync(fileBck, updateTime); fs.writeFileSync(fileBck, updateTime);
await push(info); await push(info);
} }

@ -2,7 +2,7 @@ const coro = require('./index.js');
var uk = coro({ var uk = coro({
province: '英国', province: '英国',
sms: ['18118155257'], sms: ['18118155257', '15827586269'],
mail: ['i@yimian.xyz', 'hao.zheng17@student.xjtlu.edu.cn', "mingranjia@163.com"] mail: ['i@yimian.xyz', 'hao.zheng17@student.xjtlu.edu.cn', "mingranjia@163.com"]
}); });

@ -4,6 +4,6 @@ var uk = coro({
province: '湖北省', province: '湖北省',
city: '襄阳', city: '襄阳',
mail: ['i@yimian.xyz', 'hao.zheng17@student.xjtlu.edu.cn'], mail: ['i@yimian.xyz', 'hao.zheng17@student.xjtlu.edu.cn'],
sms: ['18118155257', '15827586269'] sms: ['15827586269']
}); });

Loading…
Cancel
Save