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 }