Compare commits
No commits in common. "a5403260316ad30783190c1c7e7487fc6466752e" and "e3188c0419828076857fb98dfa7f72652ae5cc0d" have entirely different histories.
a540326031
...
e3188c0419
|
@ -18,7 +18,6 @@ using LoginReturnDTO = IRaCIS.Application.Contracts.LoginReturnDTO;
|
|||
using IRaCIS.Core.Application.Auth;
|
||||
using IRaCIS.Core.Domain.Models;
|
||||
using IRaCIS.Core.Application.Helper;
|
||||
using IP2Region.Net.Abstractions;
|
||||
|
||||
namespace IRaCIS.Application.Services
|
||||
{
|
||||
|
@ -38,7 +37,6 @@ namespace IRaCIS.Application.Services
|
|||
private readonly IReadingImageTaskService _readingImageTaskService;
|
||||
private readonly IOptionsMonitor<ServiceVerifyConfigOption> _verifyConfig;
|
||||
private readonly SystemEmailSendConfig _systemEmailConfig;
|
||||
public ISearcher _searcher;
|
||||
|
||||
public UserService(IRepository<User> userRepository,
|
||||
|
||||
|
@ -46,7 +44,6 @@ namespace IRaCIS.Application.Services
|
|||
IRepository<VerificationCode> verificationCodeRepository,
|
||||
IRepository<Doctor> doctorRepository,
|
||||
IEasyCachingProvider cache,
|
||||
ISearcher searcher,
|
||||
IReadingImageTaskService readingImageTaskService,
|
||||
IRepository<TrialUser> userTrialRepository,
|
||||
IOptionsMonitor<ServiceVerifyConfigOption> verifyConfig,
|
||||
|
@ -60,7 +57,6 @@ namespace IRaCIS.Application.Services
|
|||
this._userPassWordLogRepository = userPassWordLogRepository;
|
||||
_verifyConfig = verifyConfig;
|
||||
_cache = cache;
|
||||
this._searcher = searcher;
|
||||
this._readingImageTaskService = readingImageTaskService;
|
||||
_userRepository = userRepository;
|
||||
_mailVerificationService = mailVerificationService;
|
||||
|
@ -832,12 +828,10 @@ namespace IRaCIS.Application.Services
|
|||
});
|
||||
|
||||
}
|
||||
var ipinfo = _searcher.Search(_userInfo.IP);
|
||||
|
||||
var iPRegion = string.Join('|', ipinfo.Split('|').TakeLast(3));
|
||||
await _userRepository.BatchUpdateNoTrackingAsync(x => x.Id == loginUser.Id, x => new User()
|
||||
{
|
||||
LastLoginIP = iPRegion,
|
||||
LastLoginIP = _userInfo.IP,
|
||||
LastLoginTime = DateTime.Now
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue