diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs index ee13c5afe..b48b721e3 100644 --- a/IRaCIS.Core.Application/Service/Management/UserService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserService.cs @@ -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;