diff --git a/IRaCIS.Core.Application/Service/Common/FileService.cs b/IRaCIS.Core.Application/Service/Common/FileService.cs index 7319d0dee..ecbce02cd 100644 --- a/IRaCIS.Core.Application/Service/Common/FileService.cs +++ b/IRaCIS.Core.Application/Service/Common/FileService.cs @@ -23,7 +23,7 @@ namespace IRaCIS.Application.Services _attachmentService = attachmentService; _hostEnvironment = hostEnvironment; - defaultUploadFilePath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment); + defaultUploadFilePath = FileStoreHelper.GetIRaCISRootPath(_hostEnvironment); _logger = logger; } @@ -39,7 +39,7 @@ namespace IRaCIS.Application.Services //准备下载文件的临时路径 var guidStr = Guid.NewGuid().ToString(); - string uploadFolderPath = Path.Combine(defaultUploadFilePath, "UploadFile"); + string uploadFolderPath = Path.Combine(FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment), "UploadFile"); @@ -101,7 +101,7 @@ namespace IRaCIS.Application.Services //准备下载文件的临时路径 var guidStr = Guid.NewGuid().ToString(); //string uploadFolderPath = HostingEnvironment.MapPath("/UploadFile/"); - string uploadFolderPath = Path.Combine(defaultUploadFilePath, "UploadFile"); + string uploadFolderPath = Path.Combine(FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment), "UploadFile"); var tempSavePath = Path.Combine(uploadFolderPath, "temp", guidStr); //待压缩的文件夹,将需要下载的文件拷贝到此文件夹 if (!Directory.Exists(tempSavePath)) {