From 102bf9e82bb0dbc890b58cb8644e649b4951fec4 Mon Sep 17 00:00:00 2001 From: Sydonian <794346190@qq.com> Date: Tue, 31 Dec 2024 10:17:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/config/config.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/config/config.go b/utils/config/config.go index 3c4fe38..d0f930b 100644 --- a/utils/config/config.go +++ b/utils/config/config.go @@ -3,9 +3,10 @@ package config import ( "encoding/json" "fmt" - "github.com/imdario/mergo" "os" "path/filepath" + + "github.com/imdario/mergo" ) // Load 从本地文件读取配置,加载配置文件 @@ -32,8 +33,6 @@ func DefaultLoad(modeulName string, defCfg interface{}) error { // filepath.Join用于将多个路径组合成一个路径 configFilePath := filepath.Join(filepath.Dir(execPath), "..", "confs", fmt.Sprintf("%s.config.json", modeulName)) - configFilePath = "D:\\Work\\Codes\\workspace\\workspace\\scheduler\\common\\assets\\confs\\middleware.json" - return Load(configFilePath, defCfg) }