1
0
forked from x/icebergs
This commit is contained in:
shylinux 2020-05-06 13:11:33 +08:00
parent 3c405bb008
commit 8cc28bdf25
2 changed files with 4 additions and 2 deletions

View File

@ -214,8 +214,8 @@ var Index = &ice.Context{Name: "ctx", Help: "配置模块",
} else {
msg.Conf(arg[0], arg[1], kit.Parse(nil, "", arg[2:]...))
}
}
if len(arg) > 1 {
// 读取配置
m.Echo(kit.Formats(msg.Confv(arg[0], arg[1])))

View File

@ -407,7 +407,9 @@ var Index = &ice.Context{Name: "chat", Help: "聊天中心",
m.Echo(m.Conf(ice.WEB_SERVE, "meta.title"))
}},
"/footer": {Name: "/footer", Help: "状态栏", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
m.Echo(m.Conf(ice.WEB_SERVE, "meta.legal"))
kit.Fetch(m.Confv(ice.WEB_SERVE, "meta.legal"), func(index int, value string) {
m.Echo(value)
})
}},
"/target": {Name: "/target", Help: "对话框", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {}},