imrecord userid
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package dao
|
package dao
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -247,8 +246,6 @@ func GetUserMessageGroups(db *DaoDB, userID string) (messageGroup []*model.Messa
|
|||||||
utils.DefaultTimeValue, userID,
|
utils.DefaultTimeValue, userID,
|
||||||
utils.DefaultTimeValue, userID,
|
utils.DefaultTimeValue, userID,
|
||||||
}
|
}
|
||||||
fmt.Println(sql)
|
|
||||||
fmt.Println(sqlParams)
|
|
||||||
err = GetRows(db, &messageGroup, sql, sqlParams)
|
err = GetRows(db, &messageGroup, sql, sqlParams)
|
||||||
return messageGroup, err
|
return messageGroup, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,7 +100,6 @@ func (c *EventController) TestWebsocket() {
|
|||||||
for _, v := range messageGroups {
|
for _, v := range messageGroups {
|
||||||
clients[v.GroupID] = append(clients[v.GroupID], ws)
|
clients[v.GroupID] = append(clients[v.GroupID], ws)
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("clients map : %v", utils.Format4Output(clients, false))
|
|
||||||
db := dao.GetDB()
|
db := dao.GetDB()
|
||||||
if globals.IsProductEnv() {
|
if globals.IsProductEnv() {
|
||||||
_, _, err = jxcontext.New(nil, c.GetString("token"), c.Ctx.ResponseWriter, c.Ctx.Request)
|
_, _, err = jxcontext.New(nil, c.GetString("token"), c.Ctx.ResponseWriter, c.Ctx.Request)
|
||||||
|
|||||||
Reference in New Issue
Block a user