修改静态字符串 进行分类
This commit is contained in:
@@ -23,38 +23,8 @@ namespace IRaCIS.Core.API
|
||||
app.UseStaticFiles(new StaticFileOptions
|
||||
{
|
||||
FileProvider = new PhysicalFileProvider(iRaCISDataFolder),
|
||||
RequestPath = $"/{StaticData.IRaCISDataFolder}"
|
||||
RequestPath = $"/{StaticData.Folder.IRaCISDataFolder}"
|
||||
});
|
||||
|
||||
|
||||
|
||||
#region 后期废弃
|
||||
|
||||
|
||||
var uploadPath = Path.Combine(Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).FullName, StaticData.UploadFileFolder);
|
||||
|
||||
|
||||
if (!Directory.Exists(uploadPath))
|
||||
{
|
||||
Directory.CreateDirectory(uploadPath);
|
||||
}
|
||||
|
||||
app.UseStaticFiles(new StaticFileOptions
|
||||
{
|
||||
FileProvider = new PhysicalFileProvider(uploadPath),
|
||||
RequestPath = $"/{StaticData.UploadFileFolder}"
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,8 +75,10 @@
|
||||
|
||||
"NoneDicomStudyCodePrefix": "ST",
|
||||
|
||||
"DicomStudyCodePrefix": "NST"
|
||||
},
|
||||
"DicomStudyCodePrefix": "NST",
|
||||
|
||||
"DefaultPassword": "123456"
|
||||
}
|
||||
|
||||
//网站根地址,为了访问文件 dicom 和上传的文档... 实测发现不用将域名拼接返回,浏览器会自动加上当前ip,避免了多环境读取环境配置文件
|
||||
|
||||
|
||||
Reference in New Issue
Block a user