修改配置文件和提示

This commit is contained in:
2022-05-23 11:26:20 +08:00
parent af586f302c
commit abd3f2dc7a
9 changed files with 52 additions and 80 deletions
@@ -13,7 +13,7 @@ public static class ExcelExportHelper
if (doc == null)
{
throw new Exception("当前code 没找到对应的导出模板文件");
throw new Exception("当前code 没找到对应的导出模板文件,请核对是否修改了配置数据");
}
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\'))?.FullName;
@@ -7,7 +7,7 @@ namespace IRaCIS.Core.Application.Helper;
public static class ImageResizeHelper
{
// 采用ImageSharp组件 跨平台,不依赖windows 平台图像处理组件,这里大坑(net 6 下,之前由于Dicom处理最新组件 依赖了这个库的一个旧版本,导致缩略图bug,单独升级依赖组件才解决)
public static void ResizeSave(string filePath, string? fileStorePath)
{
@@ -16,7 +16,6 @@ public static class ImageResizeHelper
using (var image = SixLabors.ImageSharp.Image.Load(filePath))
{
image.Mutate(x => x.Resize(500, 500));
image.Save(fileStorePath);