diff --git a/IRaCIS.Core.Application/Service/Management/DTO/UserLogViewModel.cs b/IRaCIS.Core.Application/Service/Management/DTO/UserLogViewModel.cs
index 9357f9f8c..7f6742ce3 100644
--- a/IRaCIS.Core.Application/Service/Management/DTO/UserLogViewModel.cs
+++ b/IRaCIS.Core.Application/Service/Management/DTO/UserLogViewModel.cs
@@ -75,6 +75,14 @@ namespace IRaCIS.Core.Application.ViewModel
}
+ public class SetIsIgnoreUncommonlyInDto
+ {
+ public Guid Id { get; set; }
+
+ public bool IsIgnoreUncommonly { get; set; }
+ }
+
+
///UserLogQuery 列表查询参数模型
public class UserLogQuery : PageInput
{
diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs
index f6bce8623..bc1aeca08 100644
--- a/IRaCIS.Core.Application/Service/Management/UserService.cs
+++ b/IRaCIS.Core.Application/Service/Management/UserService.cs
@@ -919,7 +919,17 @@ namespace IRaCIS.Core.Application.Service
}
-
+ ///
+ /// 设置是否忽略异地登录
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task SetIsIgnoreUncommonly(SetIsIgnoreUncommonlyInDto inDto)
+ {
+ await _userLogRepository.UpdatePartialFromQueryAsync(inDto.Id, x => new UserLog() { IsIgnoreUncommonly = inDto.IsIgnoreUncommonly }, true);
+ return ResponseOutput.Ok();
+ }