by Robin at 20240511
This commit is contained in:
parent
22b28535a8
commit
9fb394d82a
|
@ -202,7 +202,7 @@ func (s *Service) ApiLogout(ctx *gin.Context, req *loginproto.ApiLogoutReq) (log
|
|||
|
||||
ec = errcode.ErrCodeLoginSrvOk
|
||||
|
||||
if err := _DefaultToken.OpDeleteByMid(ctx, util.DerefInt64(req.Mid)); err != nil {
|
||||
if err := _DefaultToken.OpDeleteByMid(ctx, util.DerefInt64(req.Mid)); err != nil && err != qmgo.ErrNoSuchDocuments {
|
||||
logger.Error("ApiDeleteByMid failed, err: %v", err)
|
||||
logoutData = &loginproto.OpLogoutData{
|
||||
OpResult: false,
|
||||
|
|
|
@ -649,7 +649,7 @@ func (s *Service) OpLogout(ctx *gin.Context, req *loginproto.OpLogoutReq) (logou
|
|||
|
||||
ec = errcode.ErrCodeLoginSrvOk
|
||||
|
||||
if err := _DefaultToken.OpDeleteByMid(ctx, util.DerefInt64(req.Mid)); err != nil {
|
||||
if err := _DefaultToken.OpDeleteByMid(ctx, util.DerefInt64(req.Mid)); err != nil && err != qmgo.ErrNoSuchDocuments {
|
||||
logger.Error("OpDeleteByMid failed, err: %v", err)
|
||||
logoutData = &loginproto.OpLogoutData{
|
||||
OpResult: false,
|
||||
|
|
Loading…
Reference in New Issue