From b238835e711b95e7d575609194d789c5413a31a1 Mon Sep 17 00:00:00 2001 From: shaoying Date: Fri, 7 Jun 2019 13:45:32 +0800 Subject: [PATCH] fix chat create loop --- src/examples/chat/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/examples/chat/chat.go b/src/examples/chat/chat.go index 8621ab51..b268f3b7 100644 --- a/src/examples/chat/chat.go +++ b/src/examples/chat/chat.go @@ -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]) } })