update file config
This commit is contained in:
parent
e2a6e4898e
commit
84575b53b0
2
init.go
2
init.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user