Merge branch 'Test_IRC_Net8' of http://192.168.3.68:2000/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing Details

IRC_NewDev
hang 2024-05-16 10:13:04 +08:00
commit 0b130bbc01
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(); var lastLoginLog = await _userLogRepository.Where(x => x.LoginUserId == loginUser.Id).OrderByDescending(x => x.CreateTime).FirstOrDefaultAsync();
if (lastLoginLog!=null) if (lastLoginLog!=null)
{ {
// 与上一次IP不一致
if (lastLoginLog.IP != _userInfo.IP) if (lastLoginLog.IP != _userInfo.IP)
{ {
loginUser.LoginState = 2; loginUser.LoginState = 2;