mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-11 06:56:59 +08:00
fix bug: obtain user online status err(#567)
This commit is contained in:
parent
24549defa3
commit
36802ab276
@ -84,7 +84,13 @@ func (u *UserApi) GetUsersOnlineStatus(c *gin.Context) {
|
||||
reply, err := msgClient.GetUsersOnlineStatus(c, &req)
|
||||
if err != nil {
|
||||
log.ZWarn(c, "GetUsersOnlineStatus rpc err", err)
|
||||
apiresp.GinError(c, err)
|
||||
|
||||
parseError := apiresp.ParseError(err)
|
||||
log.ZInfo(c, "errcode bantanger", parseError.ErrCode)
|
||||
if parseError.ErrCode == errs.NoPermissionError {
|
||||
apiresp.GinError(c, err)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
wsResult = append(wsResult, reply.SuccessResult...)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user