From 16ff1975ff34ad5463b54365de573536c7294ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E9=9B=A8=E2=97=8E=E6=98=9F=E7=A9=BA?= <63490117+TimeRainStarSky@users.noreply.github.com> Date: Sun, 3 Jul 2022 18:20:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8C=9C=E6=AD=8C?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=88=9B=E5=BB=BAconfig.json=E9=94=99?= =?UTF-8?q?=E8=AF=AF=20(#296)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/guessmusic/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/guessmusic/main.go b/plugin/guessmusic/main.go index b51d4655..affc0a8c 100644 --- a/plugin/guessmusic/main.go +++ b/plugin/guessmusic/main.go @@ -329,7 +329,7 @@ func init() { // 插件主体 } func saveConfig(cfgFile string) (err error) { - if reader, err := os.OpenFile(cfgFile, os.O_CREATE, os.ModePerm); err == nil { + if reader, err := os.Create(cfgFile); err == nil { err = json.NewEncoder(reader).Encode(&cfg) if err != nil { return err From 7e7191536a7c9a2e666bbfe08cb6f7bf0b16f256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 3 Jul 2022 18:28:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=96=20v1.5.0-beta2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kanban/banner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kanban/banner.go b/kanban/banner.go index 751aa0cc..082edca4 100644 --- a/kanban/banner.go +++ b/kanban/banner.go @@ -10,7 +10,7 @@ import ( var ( info = [...]string{ "* OneBot + ZeroBot + Golang", - "* Version 1.5.0-beta1 - 2022-07-03 09:51:04 +0800 CST", + "* Version 1.5.0-beta2 - 2022-07-03 18:24:34 +0800 CST", "* Copyright © 2020 - 2022 FloatTech. All Rights Reserved.", "* Project: https://github.com/FloatTech/ZeroBot-Plugin", }