:sparkles:新增单点登录功能、在线时长

This commit is contained in:
不做码农
2023-08-28 08:28:12 +08:00
parent 55733f07e8
commit 839e400ed1
12 changed files with 186 additions and 59 deletions
@@ -30,11 +30,11 @@ namespace ZR.Admin.WebApi.Controllers.monitor
[HttpGet("list")]
public IActionResult Index([FromQuery] PagerInfo parm)
{
var result = MessageHub.clientUsers
var result = MessageHub.onlineClients
.OrderByDescending(f => f.LoginTime)
.Skip(parm.PageNum - 1).Take(parm.PageSize);
return SUCCESS(new { result, totalNum = MessageHub.clientUsers.Count });
return SUCCESS(new { result, totalNum = MessageHub.onlineClients.Count });
}
/// <summary>