From 3ea1d3c96e5977feb17ff45f68ba1a6a27b02edf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 1 Jan 2026 15:27:16 +0000 Subject: [PATCH] =?UTF-8?q?chore(lint):=20=E6=94=B9=E8=BF=9B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kanban/gen/banner.go | 12 ++++++------ main.go | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/kanban/gen/banner.go b/kanban/gen/banner.go index 25a05131a6..8fae5fd1a0 100755 --- a/kanban/gen/banner.go +++ b/kanban/gen/banner.go @@ -35,7 +35,7 @@ func main() { panic(err) } defer f.Close() - + vartag := bytes.NewBuffer(nil) vartagcmd := exec.Command("git", "tag", "--sort=committerdate") vartagcmd.Stdout = vartag @@ -43,11 +43,11 @@ func main() { if err != nil { panic(err) } - + // 修复:正确处理标签输出 output := strings.TrimSpace(vartag.String()) var version string - + if output == "" { // 如果没有git标签,使用默认版本 version = "v0.0.0-dev" @@ -55,13 +55,13 @@ func main() { // 分割标签,过滤空行 lines := strings.Split(output, "\n") validTags := make([]string, 0) - + for _, line := range lines { if strings.TrimSpace(line) != "" { validTags = append(validTags, line) } } - + if len(validTags) == 0 { version = "v0.0.0-dev" } else { @@ -69,7 +69,7 @@ func main() { version = validTags[len(validTags)-1] } } - + now := time.Now() _, err = fmt.Fprintf(f, banner, version, now.Year(), now.Format(timeformat)) if err != nil { diff --git a/main.go b/main.go index 5b4645473a..e37497a620 100755 --- a/main.go +++ b/main.go @@ -66,8 +66,8 @@ import ( // vvvvvvvvvvvvvv // // vvvv // - _ "github.com/FloatTech/ZeroBot-Plugin/custom" // 自定义插件合集 -// _ "github.com/FloatTech/ZeroBot-Plugin/plugin/ahsai" // ahsai tts + _ "github.com/FloatTech/ZeroBot-Plugin/custom" // 自定义插件合集 + // _ "github.com/FloatTech/ZeroBot-Plugin/plugin/ahsai" // ahsai tts _ "github.com/FloatTech/ZeroBot-Plugin/plugin/aifalse" // 服务器监控 _ "github.com/FloatTech/ZeroBot-Plugin/plugin/aiimage" // AI画图 _ "github.com/FloatTech/ZeroBot-Plugin/plugin/aiwife" // 随机老婆