mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
test: push log add
This commit is contained in:
parent
4b77839202
commit
78cab78197
@ -88,11 +88,12 @@ 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 {
|
||||||
|
log.ZDebug(ctx, "push user not online", "userID", v)
|
||||||
tempT.Resp = resp
|
tempT.Resp = resp
|
||||||
singleUserResult = append(singleUserResult, tempT)
|
singleUserResult = append(singleUserResult, tempT)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
log.ZDebug(ctx, "SuperGroupOnlineBatchPushOneMsg", "clients", clients)
|
log.ZDebug(ctx, "push user online", "clients", clients, "userID", v)
|
||||||
for _, client := range clients {
|
for _, client := range clients {
|
||||||
if client != nil {
|
if client != nil {
|
||||||
temp := &msggateway.SingleMsgToUserPlatform{
|
temp := &msggateway.SingleMsgToUserPlatform{
|
||||||
|
@ -147,7 +147,7 @@ func getRemoteAdders(client []*Client) string {
|
|||||||
if i == 0 {
|
if i == 0 {
|
||||||
ret = c.ctx.GetRemoteAddr()
|
ret = c.ctx.GetRemoteAddr()
|
||||||
} else {
|
} else {
|
||||||
ret += "@" + c.ctx.GetRemoteAddr()
|
ret += " @ " + c.ctx.GetRemoteAddr()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user