实现了控制台启动后自动隐藏

This commit is contained in:
2025-10-31 17:29:14 +08:00
parent 22b4402737
commit 8d41c1ba62
6 changed files with 82 additions and 59 deletions

View File

@@ -23,7 +23,7 @@ func init() {
// 每天0点检查更新
gcron.Add(gctx.New(), "0 0 0 * * *", func(ctx context.Context) {
err := update.CheckUpdate()
err := update.CheckUpdate(true)
if err != nil {
g.Log().Errorf(ctx, "检查更新失败:%v", err)
}
@@ -31,7 +31,7 @@ func init() {
go func() {
//在协程中检查更新,预防主程序阻塞
err := update.CheckUpdate()
err := update.CheckUpdate(true)
if err != nil {
g.Log().Errorf(gctx.New(), "检查更新失败:%v", err)
}