1
0
forked from x/icebergs

add engine

This commit is contained in:
shaoying 2020-05-10 16:51:13 +08:00
parent 4fb95f5056
commit 7460bf90d1

View File

@ -416,9 +416,16 @@ var Index = &ice.Context{Name: "chat", Help: "聊天中心",
"/source": {Name: "/source", Help: "输入框", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {}}, "/source": {Name: "/source", Help: "输入框", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {}},
"/action": {Name: "/action", Help: "工作台", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { "/action": {Name: "/action", Help: "工作台", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
if m.Warn(m.Option(ice.MSG_RIVER) == "" || m.Option(ice.MSG_STORM) == "", "not join") { if m.Warn(m.Option(ice.MSG_RIVER) == "" || m.Option(ice.MSG_STORM) == "", "not join") {
// m.Render("status", 402, "not join") cmds := kit.Simple(kit.Keys(m.Option("group"), m.Option("index")), arg[3:])
if !m.Right(cmds) {
m.Render("status", 403, "not auth")
return return
} }
m.Set(ice.MSG_RESULT)
m.Cmdy(cmds).Option("cmds", cmds)
return
// m.Render("status", 402, "not join")
}
prefix := kit.Keys(kit.MDB_HASH, arg[0], "tool", kit.MDB_HASH, arg[1]) prefix := kit.Keys(kit.MDB_HASH, arg[0], "tool", kit.MDB_HASH, arg[1])
if len(arg) == 2 { if len(arg) == 2 {