修改测试

This commit is contained in:
2022-05-27 17:44:27 +08:00
parent 1126dd164a
commit 541d2ab34c
3 changed files with 7 additions and 3 deletions
@@ -16,6 +16,7 @@ using System.Linq;
using System.Threading.Tasks;
using IRaCIS.Core.Domain.Share;
using Microsoft.EntityFrameworkCore;
using IRaCIS.Core.Application.Helper;
namespace IRaCIS.Core.API.Controllers
{
@@ -71,7 +72,8 @@ namespace IRaCIS.Core.API.Controllers
throw new Exception("当前code 没要找到对应的文件");
}
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).FullName;
var rootPath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment);
var filePath = Path.Combine(rootPath, doc.Path.Trim('/'));