mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:10:54 +00:00
fix testing fail
This commit is contained in:
parent
c372328f88
commit
38188098c5
@ -151,13 +151,13 @@ func (c *JsonConfigContainer) getData(key string) interface{} {
|
||||
}
|
||||
for _, key := range sectionKey[1:] {
|
||||
if v, ok := curValue.(map[string]interface{}); ok {
|
||||
if v2, ok := v[key]; ok {
|
||||
return v2
|
||||
}
|
||||
}
|
||||
}
|
||||
if curValue, ok = v[key]; !ok {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
return curValue
|
||||
}
|
||||
if v, ok := c.data[key]; ok {
|
||||
return v
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user