提交 d0b43ef4 编写于 作者: G git

beego.AppConfig.Strings bug

上级 07c628c7
...@@ -110,7 +110,7 @@ func (b *beegoAppConfig) String(key string) string { ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册