Merge branch 'Test_HIR_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_HIR_Net8
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
he 2025-09-17 11:20:33 +08:00
commit ba9c88d836
1 changed files with 25 additions and 12 deletions

View File

@ -166,6 +166,16 @@ namespace IRaCIS.Core.SCP.Service
await DataMaintenanceAsaync();
await AddUploadLogAsync();
}
await SendAssociationReleaseResponseAsync();
}
private async Task AddUploadLogAsync()
{
//记录监控
var _SCPImageUploadRepository = _serviceProvider.GetService<IRepository<SCPImageUpload>>();
@ -177,10 +187,6 @@ namespace IRaCIS.Core.SCP.Service
//可能是测试echo 导致记录了
await _SCPImageUploadRepository.AddAsync(_upload, _upload.FileCount > 0 ? true : false);
}
await SendAssociationReleaseResponseAsync();
}
@ -251,6 +257,13 @@ namespace IRaCIS.Core.SCP.Service
await _studyRepository.SaveChangesAndClearAllTrackingAsync();
}
else
{
//记录日志
await AddUploadLogAsync();
}
Log.Logger.Warning($"连接关闭 {exception?.Message} {exception?.InnerException?.Message}");
}