在线用户新增IP显示

This commit is contained in:
不做码农
2022-05-22 19:34:57 +08:00
parent 956b496fa0
commit 58f5de7037
2 changed files with 6 additions and 3 deletions

View File

@@ -16,13 +16,15 @@ namespace ZR.Model
public long? Userid { get; set; }
public string Name { get; set; }
public DateTime LoginTime { get; set; }
public OnlineUsers(string clientid, string name, long? userid)
public string UserIP { get; set; }
public OnlineUsers(string clientid, string name, long? userid, string? userip)
{
ConnnectionId = clientid;
Name = name;
LoginTime = DateTime.Now;
Userid = userid;
UserIP = userip;
}
}
}