1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00

fix chat create loop

This commit is contained in:
shaoying 2019-06-07 13:45:32 +08:00
parent 5c858eb440
commit b238835e71

View File

@ -176,7 +176,7 @@ var Index = &ctx.Context{Name: "chat", Help: "会议中心",
m.Option("username", m.Conf("runtime", "user.name"))
m.Confm("flow", []string{h, "user"}, func(key string, value map[string]interface{}) {
if kit.Format(value["user"]) != m.Conf("runtime", "node.route") {
if kit.Right(value["user"]) && kit.Format(value["user"]) != m.Conf("runtime", "node.route") {
m.Cmd("ssh._route", value["user"], "context", "chat", "ocean", "spawn", h, arg[2])
}
})