Uat_Study
hang 2022-06-02 17:06:45 +08:00
parent 0f445eaef0
commit ec93deb86a
1 changed files with 3 additions and 3 deletions

View File

@ -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))
{