没有生成dir 继续下载
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
e488ba5edd
commit
0fdbb5dde0
|
|
@ -1054,6 +1054,10 @@ namespace IRaCIS.Core.API.Controllers
|
|||
|
||||
Log.Logger.Warning($"DIRPath: {study.StudyDIRPath}");
|
||||
|
||||
if (study.StudyDIRPath.IsNotNullOrEmpty())
|
||||
{
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
await using (var entryStream = dicomDirEntry.Open())
|
||||
|
|
@ -1065,7 +1069,7 @@ namespace IRaCIS.Core.API.Controllers
|
|||
catch (Exception ex)
|
||||
{
|
||||
Log.Logger.Warning($"处理文件{study.StudyCode}DIR失败: {ex.Message}");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -2076,11 +2080,26 @@ namespace IRaCIS.Core.API.Controllers
|
|||
var dicomDirPath = $"{visit.SubjectCode}_{visit.VisitName}/{studyTime}_{modalitysStr}/DICOMDIR";
|
||||
var dicomDirEntry = zip.CreateEntry(dicomDirPath, CompressionLevel.Fastest);
|
||||
|
||||
Log.Logger.Warning($"DIRPath: {study.StudyDIRPath}");
|
||||
|
||||
if (study.StudyDIRPath.IsNotNullOrEmpty())
|
||||
{
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
await using (var entryStream = dicomDirEntry.Open())
|
||||
await using (var dirStream = await _oSSService.GetStreamFromOSSAsync(study.StudyDIRPath))
|
||||
{
|
||||
await dirStream.CopyToAsync(entryStream, 32 * 1024, abortToken);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Logger.Warning($"处理文件{study.StudyCode}DIR失败: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ---------- IMAGE FILES ----------
|
||||
foreach (var series in study.SeriesList)
|
||||
|
|
|
|||
Loading…
Reference in New Issue