下载过滤非dicom文件
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
hang 2025-09-16 10:35:22 +08:00
parent 84349c19e7
commit b115dd5253
1 changed files with 5 additions and 2 deletions

View File

@ -459,12 +459,15 @@ namespace IRaCIS.Core.Application.Service
if (prevVersion == null) if (prevVersion == null)
continue; // 没找到可恢复版本 continue; // 没找到可恢复版本
if (Path.GetExtension(prevVersion.Key).IsNotNullOrEmpty())
{
continue;//不是dicom 文件
}
try try
{ {
await File.AppendAllTextAsync(outputFile, $"{prevVersion.Key},{prevVersion.VersionId}" + Environment.NewLine); //await File.AppendAllTextAsync(outputFile, $"{prevVersion.Key},{prevVersion.VersionId}" + Environment.NewLine);
var getReq = new GetObjectRequest(tempToken.AliyunOSS.BucketName, prevVersion.Key) var getReq = new GetObjectRequest(tempToken.AliyunOSS.BucketName, prevVersion.Key)
{ {