From eda9be87a8a7b2433edea12a65ff94a495ad72b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=BF=E9=98=B3?= <997485446@qq.com> Date: Sun, 18 Feb 2024 13:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'internal/config/app=5Fcon?= =?UTF-8?q?fig.go'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/config/app_config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/app_config.go b/internal/config/app_config.go index f7d5d31..70006de 100644 --- a/internal/config/app_config.go +++ b/internal/config/app_config.go @@ -128,11 +128,11 @@ type AppConfig struct { func GetConf() (iniConf string, err error) { if os.Getenv(model.MODE_ENV) != "" { - if err = os.Setenv(constant.ConfigFileEnvKey, fmt.Sprintf("./conf/%s", model.SERVER_DUBBOGO_CONFIG)); err != nil { + if err = os.Setenv(constant.ConfigFileEnvKey, fmt.Sprintf("./conf/%s%s", os.Getenv(model.MODE_ENV), model.SERVER_DUBBOGO_CONFIG)); err != nil { return } } - iniConf = fmt.Sprintf("./conf/%s/%s", os.Getenv(model.MODE_ENV), model.SERVER_CONFIG) + iniConf = fmt.Sprintf("./conf/%s", model.SERVER_CONFIG) return }