Merge branch 'dev' of https://git.tuotong-tech.com/tnb/tnb.server into dev
This commit is contained in:
@@ -362,17 +362,17 @@ public class OAuthService : IDynamicApiController, ITransient
|
||||
var httpContext = _httpContextAccessor.HttpContext;
|
||||
httpContext.SignoutToSwagger();
|
||||
|
||||
// 清除IM中的webSocket
|
||||
var list = await GetOnlineUserList();
|
||||
if (list != null)
|
||||
{
|
||||
var onlineUser = list.Find(it => it.tenantId == _userManager.TenantId && it.userId == _userManager.UserId);
|
||||
if (onlineUser != null)
|
||||
{
|
||||
list.RemoveAll((x) => x.connectionId == onlineUser.connectionId);
|
||||
await SetOnlineUserList(list);
|
||||
}
|
||||
}
|
||||
// 清除IM中的webSocket, modified by PhilPan 改为在IMHandle中处理
|
||||
//var list = await GetOnlineUserList();
|
||||
//if (list != null)
|
||||
//{
|
||||
// var onlineUser = list.Find(it => it.tenantId == _userManager.TenantId && it.userId == _userManager.UserId);
|
||||
// if (onlineUser != null)
|
||||
// {
|
||||
// list.RemoveAll((x) => x.connectionId == onlineUser.connectionId);
|
||||
// await SetOnlineUserList(list);
|
||||
// }
|
||||
//}
|
||||
|
||||
await DelUserInfo();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user