mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-07-13 08:31:08 +08:00
fix bug: obtain user online status err(#567)
This commit is contained in:
parent
cb59f05734
commit
b5e5945b61
@ -84,7 +84,11 @@ func (u *UserApi) GetUsersOnlineStatus(c *gin.Context) {
|
|||||||
reply, err := msgClient.GetUsersOnlineStatus(c, &req)
|
reply, err := msgClient.GetUsersOnlineStatus(c, &req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.ZWarn(c, "GetUsersOnlineStatus rpc err", err)
|
log.ZWarn(c, "GetUsersOnlineStatus rpc err", err)
|
||||||
continue
|
// apiresp.GinError(c, err)
|
||||||
|
parseError := apiresp.ParseError(err)
|
||||||
|
if parseError.ErrCode == errs.NoPermissionError {
|
||||||
|
apiresp.GinError(c, err)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
wsResult = append(wsResult, reply.SuccessResult...)
|
wsResult = append(wsResult, reply.SuccessResult...)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,6 +16,8 @@ package msggateway
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tokenverify"
|
||||||
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
|
||||||
|
|
||||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user