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