From 5791aca9fd015bc9b8f31de21f54fcd01677622a Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 20 Feb 2025 15:26:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=90=8E=E4=B8=80=E6=AC=A1=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=97=B6=E9=97=B4=20=E5=92=8Cip=20=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Management/UserService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs index 48685c210..34f2e858d 100644 --- a/IRaCIS.Core.Application/Service/Management/UserService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserService.cs @@ -1008,7 +1008,11 @@ namespace IRaCIS.Core.Application.Service } - + await _identityUserRepository.BatchUpdateNoTrackingAsync(x => x.Id == loginUser.IdentityUserId, x => new IdentityUser() + { + LastLoginTime = DateTime.Now, + LastLoginIP=_userInfo.IP, + }); if (loginUser.Status == 0)