From ae99c1e9c213587527e08480d95325780b5883a8 Mon Sep 17 00:00:00 2001 From: shaoying Date: Wed, 8 Apr 2020 18:30:16 +0800 Subject: [PATCH] opt some --- core/chat/chat.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/chat/chat.go b/core/chat/chat.go index 8d16921c..2a8edfd0 100644 --- a/core/chat/chat.go +++ b/core/chat/chat.go @@ -361,7 +361,10 @@ var Index = &ice.Context{Name: "chat", Help: "聊天中心", } else { // 本地空间 m.Richs(ice.WEB_SPACE, nil, "*", func(key string, value map[string]interface{}) { - m.Push(key, value, []string{"type", "name", "user"}) + switch value[kit.MDB_TYPE] { + case ice.WEB_SERVER, ice.WEB_WORKER: + m.Push(key, value, []string{"type", "name", "user"}) + } }) } return