mirror of
https://github.com/Monibuca/engine.git
synced 2026-04-23 00:07:06 +08:00
fix: getconfig api old format output
This commit is contained in:
+2
-2
@@ -94,10 +94,10 @@ func (config Config) Has(key string) (ok bool) {
|
||||
}
|
||||
|
||||
func (config *Config) MarshalJSON() ([]byte, error) {
|
||||
if config.props == nil {
|
||||
if config.propsMap == nil {
|
||||
return json.Marshal(config.Value)
|
||||
}
|
||||
return json.Marshal(config.props)
|
||||
return json.Marshal(config.propsMap)
|
||||
}
|
||||
|
||||
// Parse 第一步读取配置结构体的默认值
|
||||
|
||||
Reference in New Issue
Block a user