From 089d9e255bbd91f2d3e0b276fbcd8adb3a7e8ab5 Mon Sep 17 00:00:00 2001 From: Mmx <1624045573@qq.com> Date: Fri, 3 Dec 2021 20:05:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- global/config.go | 3 --- main.go | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/global/config.go b/global/config.go index ed080d3..db9b6b5 100644 --- a/global/config.go +++ b/global/config.go @@ -2,7 +2,6 @@ package global import ( "github.com/Mmx233/BitSrunLoginGo/models" - "github.com/Mmx233/BitSrunLoginGo/util" "github.com/Mmx233/BitSrunLoginGo/v1/transfer" "github.com/Mmx233/config" "log" @@ -49,6 +48,4 @@ func init() { log.Println("读取配置文件失败:\n", e.Error()) os.Exit(1) } - - util.Log.Demo = Config.Settings.DemoMode } diff --git a/main.go b/main.go index 25795f9..14995cb 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,7 @@ import ( ) func main() { + util.Log.Demo = global.Config.Settings.DemoMode defer util.Log.CatchRecover() if global.Flags.RunningDaemon {