mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 05:01:28 +00:00
beego.AppConfig.Strings bug
This commit is contained in:
parent
07c628c7e9
commit
d0b43ef4f5
@ -110,7 +110,7 @@ func (b *beegoAppConfig) String(key string) string {
|
|||||||
|
|
||||||
func (b *beegoAppConfig) Strings(key string) []string {
|
func (b *beegoAppConfig) Strings(key string) []string {
|
||||||
v := b.innerConfig.Strings(RunMode + "::" + key)
|
v := b.innerConfig.Strings(RunMode + "::" + key)
|
||||||
if len(v) == 0 {
|
if v[0] == "" {
|
||||||
return b.innerConfig.Strings(key)
|
return b.innerConfig.Strings(key)
|
||||||
}
|
}
|
||||||
return v
|
return v
|
||||||
|
Loading…
Reference in New Issue
Block a user