websotckt
This commit is contained in:
@@ -92,6 +92,7 @@ func (c *EventController) TestWebsocket() {
|
|||||||
msgMap = make(map[int]*model.ImMessageRecord)
|
msgMap = make(map[int]*model.ImMessageRecord)
|
||||||
groupID int
|
groupID int
|
||||||
)
|
)
|
||||||
|
fmt.Println("test1,userID", userID)
|
||||||
//将当前客户端放入map中
|
//将当前客户端放入map中
|
||||||
messageGroups, _ := dao.GetUserMessageGroups(dao.GetDB(), userID)
|
messageGroups, _ := dao.GetUserMessageGroups(dao.GetDB(), userID)
|
||||||
for _, v := range messageGroups {
|
for _, v := range messageGroups {
|
||||||
|
|||||||
Reference in New Issue
Block a user