Uat_Study
parent
0f445eaef0
commit
ec93deb86a
|
@ -23,7 +23,7 @@ namespace IRaCIS.Application.Services
|
||||||
_attachmentService = attachmentService;
|
_attachmentService = attachmentService;
|
||||||
_hostEnvironment = hostEnvironment;
|
_hostEnvironment = hostEnvironment;
|
||||||
|
|
||||||
defaultUploadFilePath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment);
|
defaultUploadFilePath = FileStoreHelper.GetIRaCISRootPath(_hostEnvironment);
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ namespace IRaCIS.Application.Services
|
||||||
//准备下载文件的临时路径
|
//准备下载文件的临时路径
|
||||||
var guidStr = Guid.NewGuid().ToString();
|
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();
|
var guidStr = Guid.NewGuid().ToString();
|
||||||
//string uploadFolderPath = HostingEnvironment.MapPath("/UploadFile/");
|
//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); //待压缩的文件夹,将需要下载的文件拷贝到此文件夹
|
var tempSavePath = Path.Combine(uploadFolderPath, "temp", guidStr); //待压缩的文件夹,将需要下载的文件拷贝到此文件夹
|
||||||
if (!Directory.Exists(tempSavePath))
|
if (!Directory.Exists(tempSavePath))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue