fix 脚本模板
This commit is contained in:
parent
cedce860c5
commit
55fae245e9
@ -72,10 +72,11 @@ async function main() {
|
|||||||
await patchInit()
|
await patchInit()
|
||||||
let patch = new Path();
|
let patch = new Path();
|
||||||
await patch.run();
|
await patch.run();
|
||||||
setInterval(() => {
|
|
||||||
console.log(new Date().format("MM-dd hh:mm:ss"));
|
|
||||||
}, 1000);
|
|
||||||
console.log("逻辑执行完成,等待退出");
|
console.log("逻辑执行完成,等待退出");
|
||||||
|
setTimeout(function() {
|
||||||
|
console.log('结束程序');
|
||||||
|
process.exit();
|
||||||
|
}, 3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
main();
|
main();
|
||||||
|
@ -25,9 +25,10 @@ async function main(){
|
|||||||
await patchInit()
|
await patchInit()
|
||||||
let patch = new Path();
|
let patch = new Path();
|
||||||
await patch.run();
|
await patch.run();
|
||||||
setInterval(() => {
|
|
||||||
console.log(new Date().format("MM-dd hh:mm:ss"));
|
|
||||||
}, 1000);
|
|
||||||
console.log("逻辑执行完成,等待退出");
|
console.log("逻辑执行完成,等待退出");
|
||||||
|
setTimeout(function() {
|
||||||
|
console.log('结束程序');
|
||||||
|
process.exit();
|
||||||
|
}, 3000);
|
||||||
}
|
}
|
||||||
main();
|
main();
|
||||||
|
Loading…
Reference in New Issue
Block a user