From 6f3495f0f5c86046ad2e552986d2ba3a06571ceb Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Fri, 13 Jun 2025 13:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proto/conf.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/proto/conf.go b/proto/conf.go index c79fba0..7389795 100644 --- a/proto/conf.go +++ b/proto/conf.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "gorm.io/gorm" + "log" "os" ) @@ -124,6 +125,12 @@ func ReadConfig(path string) error { Config.SERVER_PORT = "8083" // 默认端口 } } + configJson, cErr := json.Marshal(Config) + if cErr != nil { + log.Println("ReadConfig Error encoding config,err :", cErr) + } else { + log.Println("ReadConfig configJson:", string(configJson)) + } SigningKey = []byte(Config.TOKEN_SECRET) return err }