修改
continuous-integration/drone/push Build is passing Details

IRC_NewDev
he 2024-05-16 09:49:48 +08:00
parent bd9d78622f
commit 75367ae727
1 changed files with 1 additions and 0 deletions

View File

@ -717,6 +717,7 @@ namespace IRaCIS.Application.Services
var lastLoginLog = await _userLogRepository.Where(x => x.LoginUserId == loginUser.Id).OrderByDescending(x => x.CreateTime).FirstOrDefaultAsync();
if (lastLoginLog!=null)
{
// 与上一次IP不一致
if (lastLoginLog.IP != _userInfo.IP)
{
loginUser.LoginState = 2;