From 14f98a60093c62c5309251b38cf1d9acd80ea273 Mon Sep 17 00:00:00 2001 From: ayflying Date: Mon, 3 Nov 2025 20:51:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=B5=8B=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/boot/boot.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/boot/boot.go b/internal/boot/boot.go index d726ff1..e0c0580 100644 --- a/internal/boot/boot.go +++ b/internal/boot/boot.go @@ -7,7 +7,6 @@ import ( "github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/os/gcron" "github.com/gogf/gf/v2/os/gctx" - "github.com/gogf/gf/v2/os/gfile" ) func Boot() { @@ -15,8 +14,6 @@ func Boot() { getDev, _ := g.Cfg().GetWithEnv(gctx.New(), "dev") if !getDev.Bool() { var update = updateGithub.New("https://api.github.com/repos/ayflying/p2p/releases/latest") - gfile.PutContents("version.txt", "v0.0.9") - // 每天0点检查更新 gcron.Add(gctx.New(), "0 0 0 * * *", func(ctx context.Context) { err := update.CheckUpdate(true)