fix config merge

This commit is contained in:
白茶清欢 2024-11-25 18:49:16 +08:00
parent 3a694a1e90
commit 493f193749

View File

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