mirror of
https://github.com/astaxie/beego.git
synced 2024-11-10 20:30:54 +00:00
Merge pull request #935 from mnhkahn/master
beego1.4.2,beego.AppConfig.Strings与老版本代码不兼容问题
This commit is contained in:
commit
802aa16136
@ -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