websotckt

This commit is contained in:
苏尹岚
2020-11-11 14:13:34 +08:00
parent bbff9d2e4f
commit f101b715cf

View File

@@ -97,7 +97,7 @@ func (c *EventController) TestWebsocket() {
for _, v := range messageGroups {
clients[v.GroupID] = append(clients[v.GroupID], ws)
}
globals.SugarLogger.Debugf("clients map : %v", utils.Format4Output(clients, false))
db := dao.GetDB()
if globals.IsProductEnv() {
_, _, err = jxcontext.New(nil, c.GetString("token"), c.Ctx.ResponseWriter, c.Ctx.Request)