This commit is contained in:
Jay 2018-01-08 11:34:54 +08:00
parent a174601434
commit ce500d71bb
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
config.json config.json
node_modules node_modules
package-lock.json

4
app.js
View File

@ -59,7 +59,7 @@ const runUpdateDNS = async() => {
for (let j in config.domain) { for (let j in config.domain) {
if (config.domain[j].name == tmp.name) { if (config.domain[j].name == tmp.name) {
config.domain[j].id = tmp.id; config.domain[j].id = tmp.id;
console.log(`${Date.now()} - get domain ${config.domain[i].name} id: ${tmp.id}`); console.log(`${Date.now()} - get domain ${config.domain[j].name} id: ${tmp.id}`);
} }
} }
} }
@ -104,4 +104,4 @@ const runUpdateDNS = async() => {
}; };
runUpdateDNS(); runUpdateDNS();
setInterval(() => runUpdateDNS(), 300000); setInterval(() => runUpdateDNS(), 300000);