Compare commits
No commits in common. "c575e15c55a0fd9d126d44e674d33ac52c59f05b" and "2e993149a9589e1296040f6a3504b458fd0bb320" have entirely different histories.
c575e15c55
...
2e993149a9
|
|
@ -1039,16 +1039,10 @@ 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 (SplitAndConcatenate(loginUser.LastLoginIP) !=SplitAndConcatenate(iPRegion))
|
if (loginUser.LastLoginIP != iPRegion)
|
||||||
{
|
{
|
||||||
loginUser.LoginState = 2;
|
loginUser.LoginState = 2;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,9 @@ 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