forked from x/icebergs
opt some
This commit is contained in:
parent
3c405bb008
commit
8cc28bdf25
@ -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])))
|
||||
|
@ -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) {}},
|
||||
|
Loading…
x
Reference in New Issue
Block a user