mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-03 18:52:15 +08:00
batch push
This commit is contained in:
parent
9827ab6912
commit
2e7a4e03d2
@ -156,19 +156,13 @@ func (s *Server) pushToUser(ctx context.Context, userID string, msgData *sdkws.M
|
||||
err := client.PushMessage(ctx, msgData)
|
||||
if err != nil {
|
||||
userPlatform.ResultCode = int64(servererrs.ErrPushMsgErr.Code())
|
||||
//result.Resp = append(result.Resp, userPlatform)
|
||||
//resp = append(resp, userPlatform)
|
||||
} else {
|
||||
if _, ok := s.pushTerminal[client.PlatformID]; ok {
|
||||
result.OnlinePush = true
|
||||
//result.Resp = append(result.Resp, userPlatform)
|
||||
//results.OnlinePush = true
|
||||
//resp = append(resp, userPlatform)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
userPlatform.ResultCode = int64(servererrs.ErrIOSBackgroundPushErr.Code())
|
||||
//resp = append(resp, userPlatform)
|
||||
}
|
||||
result.Resp = append(result.Resp, userPlatform)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user