diff --git a/init.go b/init.go index 9542aef..e37e5d2 100644 --- a/init.go +++ b/init.go @@ -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