mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-27 12:08:52 +08:00
Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode
This commit is contained in:
commit
c097ce5ef7
@ -88,6 +88,8 @@ func (s *Server) SuperGroupOnlineBatchPushOneMsg(ctx context.Context, req *msgga
|
|||||||
}
|
}
|
||||||
clients, ok := s.LongConnServer.GetUserAllCons(v)
|
clients, ok := s.LongConnServer.GetUserAllCons(v)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
tempT.Resp = resp
|
||||||
|
singleUserResult = append(singleUserResult, tempT)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
log.ZDebug(ctx, "SuperGroupOnlineBatchPushOneMsg", "clients", clients)
|
log.ZDebug(ctx, "SuperGroupOnlineBatchPushOneMsg", "clients", clients)
|
||||||
|
@ -132,6 +132,8 @@ func (ws *WsServer) registerClient(client *Client) {
|
|||||||
if clientOK { //已经有同平台的连接存在
|
if clientOK { //已经有同平台的连接存在
|
||||||
ws.clients.Set(client.userID, client)
|
ws.clients.Set(client.userID, client)
|
||||||
ws.multiTerminalLoginChecker(cli)
|
ws.multiTerminalLoginChecker(cli)
|
||||||
|
log.ZInfo(client.ctx, "repeat login", "userID", client.userID, "platformID", client.platformID)
|
||||||
|
atomic.AddInt64(&ws.onlineUserConnNum, 1)
|
||||||
} else {
|
} else {
|
||||||
ws.clients.Set(client.userID, client)
|
ws.clients.Set(client.userID, client)
|
||||||
atomic.AddInt64(&ws.onlineUserConnNum, 1)
|
atomic.AddInt64(&ws.onlineUserConnNum, 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user