From 01a3a9057b09009d254ebfa364f9c88a5f23fbb9 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Fri, 17 Oct 2025 11:32:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=9C=B0=E7=99=BB=E5=BD=95=E4=BF=AE?= =?UTF-8?q?=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs index cda31390b..d0b4ef427 100644 --- a/IRaCIS.Core.Application/Service/Management/UserService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserService.cs @@ -1044,7 +1044,7 @@ namespace IRaCIS.Core.Application.Service var lastLoginIPRegion = await _userLogRepository.Where(t => t.ActionUserName == actionUserName && userOptTypes.Contains(t.OptType)) .OrderByDescending(t => t.CreateTime).Select(t => t.IPRegion).FirstOrDefaultAsync(); - if (lastLoginIPRegion != string.Empty) + if (lastLoginIPRegion!=null&&lastLoginIPRegion != string.Empty) { // 与上一次区域不一致 //if (SplitAndConcatenate(existUserLoginInfo.LastLoginIP) != SplitAndConcatenate(iPRegion))