diff --git a/conf/new.go b/conf/new.go index d5e4b7e..c0718c4 100644 --- a/conf/new.go +++ b/conf/new.go @@ -26,7 +26,7 @@ func New(srvKey string, cfg any) { vars.HostName, _ = os.Hostname() // 构造配置文件路径,输出配置文件信息 - cfp := fmt.Sprintf("%s_%s.yaml", srvKey, env.Runtime.Mode) + cfp := fmt.Sprintf("%s_%s.yaml", strings.ToLower(srvKey), env.Runtime.Mode) cfp = filepath.Join(env.Runtime.Prefix, "etc", cfp) print.Info("[BSM - %s] Config File: %s", srvKey, cfp)