This commit is contained in:
@@ -124,6 +124,8 @@ func (l *UnbindDeviceLogic) UnbindDevice(req *types.UnbindDeviceRequest) error {
|
||||
_ = l.svcCtx.Redis.ZRem(ctx, sessionsKey, sessionId).Err()
|
||||
}
|
||||
l.svcCtx.DeviceManager.KickDevice(u.Id, identifier)
|
||||
// clean user cache
|
||||
_ = l.svcCtx.UserModel.ClearUserCache(l.ctx, u)
|
||||
l.Infow("设备解绑完成",
|
||||
logger.Field("device_identifier", identifier),
|
||||
logger.Field("elapsed_ms", duration.Milliseconds()))
|
||||
|
||||
Reference in New Issue
Block a user