修改缩略图切换路径

Uat_Study
hang 2023-05-16 17:09:15 +08:00
parent e736fe6557
commit b991e9950f
1 changed files with 23 additions and 17 deletions

View File

@ -147,8 +147,11 @@ namespace IRaCIS.Core.Application.Services
#region 切换磁盘存储后
var physicalPath = string.Empty;
var physicalPath = FileStoreHelper.GetPhysicalFilePath(_hostEnvironment, path);
//不存在,去其他路径找
if (!File.Exists(physicalPath))
{
//找到所有磁盘
var drives = DriveInfo.GetDrives()
.Where(d => d.DriveType == DriveType.Fixed && d.IsReady)
@ -170,6 +173,9 @@ namespace IRaCIS.Core.Application.Services
break;
}
}
}
#endregion