更新下载文件接口
parent
6a5ee88351
commit
b701ce0715
|
@ -165,7 +165,7 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
|
|
||||||
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).FullName;
|
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).FullName;
|
||||||
|
|
||||||
var filePath = Path.Combine(rootPath, doc.Path);
|
var filePath = Path.Combine(rootPath, doc.Path.Trim('/'));
|
||||||
|
|
||||||
if (!System.IO.File.Exists(filePath))
|
if (!System.IO.File.Exists(filePath))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue