update file config

This commit is contained in:
白茶清欢 2024-11-25 18:27:05 +08:00
parent e2a6e4898e
commit 84575b53b0

View File

@ -51,7 +51,7 @@ func Init(configReceiver any, cliReceiver any, envReceiver any, fileReceiver any
} }
// 合并配置数据 // 合并配置数据
if err = serialize.JSON.MergeDataForReceiver(configReceiver, fileReceiver, envReceiver, configReceiver); nil != err { if err = serialize.JSON.MergeDataForReceiver(cliReceiver, fileReceiver, envReceiver, configReceiver); nil != err {
return errors.New("merge config data fail : " + err.Error()) return errors.New("merge config data fail : " + err.Error())
} }
return nil return nil