fix 脚本模板

This commit is contained in:
dy 2023-12-28 19:49:06 +08:00
parent cedce860c5
commit 55fae245e9
2 changed files with 8 additions and 6 deletions

View File

@ -72,10 +72,11 @@ async function main() {
await patchInit()
let patch = new Path();
await patch.run();
setInterval(() => {
console.log(new Date().format("MM-dd hh:mm:ss"));
}, 1000);
console.log("逻辑执行完成,等待退出");
setTimeout(function() {
console.log('结束程序');
process.exit();
}, 3000);
}
main();

View File

@ -25,9 +25,10 @@ async function main(){
await patchInit()
let patch = new Path();
await patch.run();
setInterval(() => {
console.log(new Date().format("MM-dd hh:mm:ss"));
}, 1000);
console.log("逻辑执行完成,等待退出");
setTimeout(function() {
console.log('结束程序');
process.exit();
}, 3000);
}
main();