修改首次异地登录
parent
621da36150
commit
4ad3d30b1d
|
|
@ -1155,7 +1155,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 != string.Empty&& lastLoginIPRegion!=null)
|
||||
{
|
||||
// 与上一次区域不一致
|
||||
//if (SplitAndConcatenate(existUserLoginInfo.LastLoginIP) != SplitAndConcatenate(iPRegion))
|
||||
|
|
|
|||
Loading…
Reference in New Issue