修改存储路径

This commit is contained in:
2022-05-27 16:30:20 +08:00
parent 72d84b18d4
commit b5f09e9774
5 changed files with 26 additions and 9 deletions
@@ -197,7 +197,7 @@ namespace IRaCIS.Core.API.Controllers
private void DealCommonStorePath(/*string fileType, string moduleType,*/ string fileRealName, out string serverFilePath, out string relativePath)
{
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).FullName;
var rootPath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment) ;
//上传根路径
var _fileStorePath = Path.Combine(rootPath, StaticData.SystemDataFolder);
@@ -218,7 +218,7 @@ namespace IRaCIS.Core.API.Controllers
private void DealSystemNoticePath(string fileRealName, out string serverFilePath, out string relativePath)
{
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).FullName;
var rootPath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment);
//上传根路径
var _fileStorePath = Path.Combine(rootPath, StaticData.SystemDataFolder);
@@ -239,7 +239,7 @@ namespace IRaCIS.Core.API.Controllers
private void DealSysTemStorePath( string fileRealName, out string serverFilePath, out string relativePath)
{
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).FullName;
var rootPath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment);
//上传根路径
var _fileStorePath = Path.Combine(rootPath, StaticData.SystemDataFolder);
@@ -261,7 +261,7 @@ namespace IRaCIS.Core.API.Controllers
private void DealTrialStorePath(Guid trialId,string fileRealName, out string serverFilePath, out string relativePath)
{
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).FullName;
var rootPath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment);
//上传根路径
var _fileStorePath = Path.Combine(rootPath, StaticData.TrialDataFolder);
@@ -334,7 +334,7 @@ namespace IRaCIS.Core.API.Controllers
private void DealStorePath(Guid subjectVisitId, string realName, UploadFileTypeEnum typeEnum, out string serverFilePath, out string relativePath, IRepository<SubjectVisit> _subjectVisitRepository)
{
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).FullName;
var rootPath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment);
//上传根路径
var _fileStorePath = Path.Combine(rootPath, StaticData.TrialDataFolder);