From 1fff2f7256294b2e20fde2951f844980fc653d4f Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 15 Apr 2025 09:13:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/QC/QCOperationService.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs index 216cbcca9..351bcf4e3 100644 --- a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs @@ -1102,10 +1102,12 @@ namespace IRaCIS.Core.Application.Image.QA await _scpStudyRepository.BatchUpdateNoTrackingAsync(t => t.Id == id, u => new SCPStudy() { SubjectVisitId = null }); + if (fisrtPath.IsNotNullOrEmpty()) + { + var prefix = fisrtPath.Substring(1, fisrtPath.LastIndexOf('/') - 1); - var prefix = fisrtPath.Substring(1, fisrtPath.LastIndexOf('/') - 1); - - await _oSSService.DeleteFromPrefix(prefix, true); + await _oSSService.DeleteFromPrefix(prefix, true); + } }