Compare commits
3 Commits
2e993149a9
...
c575e15c55
| Author | SHA1 | Date |
|---|---|---|
|
|
c575e15c55 | |
|
|
56afa2bf8d | |
|
|
db7e9b90ec |
|
|
@ -1039,10 +1039,16 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
var iPRegion = string.Join('|', ipinfo.Split('|').TakeLast(3));
|
var iPRegion = string.Join('|', ipinfo.Split('|').TakeLast(3));
|
||||||
|
|
||||||
|
string SplitAndConcatenate(string input)
|
||||||
|
{
|
||||||
|
string[] parts = input.Split('|');
|
||||||
|
return parts.Length >= 3 ? parts[0] + parts[1] : string.Join("", parts);
|
||||||
|
}
|
||||||
|
|
||||||
if (loginUser.LastLoginIP != string.Empty)
|
if (loginUser.LastLoginIP != string.Empty)
|
||||||
{
|
{
|
||||||
// 与上一次IP不一致
|
// 与上一次IP不一致
|
||||||
if (loginUser.LastLoginIP != iPRegion)
|
if (SplitAndConcatenate(loginUser.LastLoginIP) !=SplitAndConcatenate(iPRegion))
|
||||||
{
|
{
|
||||||
loginUser.LoginState = 2;
|
loginUser.LoginState = 2;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,9 +99,6 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
var taskid = mark.VisitTaskId;
|
var taskid = mark.VisitTaskId;
|
||||||
await _readingTableQuestionAnswerRepository.BatchDeleteNoTrackingAsync(x => x.RowId == mark.RowId && x.TableQuestionId == mark.TableQuestionId);
|
await _readingTableQuestionAnswerRepository.BatchDeleteNoTrackingAsync(x => x.RowId == mark.RowId && x.TableQuestionId == mark.TableQuestionId);
|
||||||
await _readingTaskQuestionMarkRepository.DeleteFromQueryAsync(x => x.Id == inDto.Id);
|
|
||||||
|
|
||||||
|
|
||||||
await _readingTaskQuestionMarkRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new ReadingTaskQuestionMark()
|
await _readingTaskQuestionMarkRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new ReadingTaskQuestionMark()
|
||||||
{
|
{
|
||||||
InstanceId=null,
|
InstanceId=null,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue