|
|
@@ -55,8 +55,7 @@ public class OnlineUserHub : Hub<IOnlineUserHub>
|
|
|
UserName = claims.FirstOrDefault(u => u.Type == ClaimConst.Account)?.Value,
|
|
|
RealName = claims.FirstOrDefault(u => u.Type == ClaimConst.RealName)?.Value,
|
|
|
Time = DateTime.Now,
|
|
|
- //Ip = App.HttpContext.GetRemoteIpAddressToIPv4(),
|
|
|
- Ip = httpContext.Connection.RemoteIpAddress.ToString(),
|
|
|
+ Ip = httpContext.Connection.RemoteIpAddress.MapToIPv4().ToString(),
|
|
|
Browser = client.UA.Family + client.UA.Major,
|
|
|
Os = client.OS.Family + client.OS.Major,
|
|
|
TenantId = string.IsNullOrWhiteSpace(tenantId) ? 0 : Convert.ToInt64(tenantId),
|