From 55fae245e9390551713b28725d74114822e7635a Mon Sep 17 00:00:00 2001 From: dy Date: Thu, 28 Dec 2023 19:49:06 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=84=9A=E6=9C=AC=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fix_patch/patch_hdinfo_20231228.ts | 7 ++++--- src/fix_patch/patch_test.ts | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/fix_patch/patch_hdinfo_20231228.ts b/src/fix_patch/patch_hdinfo_20231228.ts index bc009f6..a8b49ae 100644 --- a/src/fix_patch/patch_hdinfo_20231228.ts +++ b/src/fix_patch/patch_hdinfo_20231228.ts @@ -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(); diff --git a/src/fix_patch/patch_test.ts b/src/fix_patch/patch_test.ts index f2e7e46..3a84d2e 100644 --- a/src/fix_patch/patch_test.ts +++ b/src/fix_patch/patch_test.ts @@ -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();