From 2aad0c65c2f2d36ba94a68e8f066ec5c7e5aae7d Mon Sep 17 00:00:00 2001 From: AoXuan Date: Tue, 22 Jul 2025 23:03:23 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E6=97=A0=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=8F=AF=E7=94=A8=E6=97=B6=E7=9A=84=E5=BB=B6=E8=BF=9F?= =?UTF-8?q?=E9=80=80=E5=87=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Go_Updater/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Go_Updater/main.go b/Go_Updater/main.go index 47e4007..6ca6429 100644 --- a/Go_Updater/main.go +++ b/Go_Updater/main.go @@ -12,6 +12,7 @@ import ( "strings" "sync" "syscall" + "time" "AUTO_MAA_Go_Updater/api" "AUTO_MAA_Go_Updater/config" @@ -576,6 +577,11 @@ func (app *Application) executeCheckingState() (UpdateState, error) { if !isUpdateAvailable { app.logger.Info("无可用更新") fmt.Println("当前已是最新版本") + + // 延迟 5 秒再退出 + fmt.Println("5 秒后自动退出...") + time.Sleep(5 * time.Second) + return StateCompleted, nil }