From 75367ae727562ae1b338389c8131567758468b73 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Thu, 16 May 2024 09:49:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Management/UserService.cs | 1 + 1 file changed, 1 insertion(+) 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;