This commit is contained in:
苏尹岚
2020-12-04 10:58:44 +08:00
parent 15cba26b7b
commit d9ed65840f

View File

@@ -113,6 +113,7 @@ func (c *EventController) TestWebsocket() {
//接受消息 业务逻辑 //接受消息 业务逻辑
broadcast <- s broadcast <- s
utils.CallFuncAsync(func() { utils.CallFuncAsync(func() {
if s.GroupID != 0 {
//发聊天消息时这个组所有的成员包括创建者都在userIDs里 //发聊天消息时这个组所有的成员包括创建者都在userIDs里
userIDs := []string{} userIDs := []string{}
if results, err := dao.GetMessageGroups(db, "", s.GroupID, 0, true, ""); err == nil { if results, err := dao.GetMessageGroups(db, "", s.GroupID, 0, true, ""); err == nil {
@@ -135,6 +136,7 @@ func (c *EventController) TestWebsocket() {
} }
dao.WrapAddIDCULDEntity(s, "") dao.WrapAddIDCULDEntity(s, "")
dao.CreateEntity(db, s) dao.CreateEntity(db, s)
}
}) })
} }
} }