From 81f5b4791833c942ee024c4c4bd98524883b6187 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Wed, 7 Jun 2023 11:31:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=8D=E5=8A=A1=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E5=88=87=E6=8D=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IRacisHostFile/MultiDiskStaticFilesMiddleware.cs | 3 +-- IRaCIS.Core.Application/Helper/FileStoreHelper.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/IRaCIS.Core.API/_PipelineExtensions/IRacisHostFile/MultiDiskStaticFilesMiddleware.cs b/IRaCIS.Core.API/_PipelineExtensions/IRacisHostFile/MultiDiskStaticFilesMiddleware.cs index d45350482..e8137fbd8 100644 --- a/IRaCIS.Core.API/_PipelineExtensions/IRacisHostFile/MultiDiskStaticFilesMiddleware.cs +++ b/IRaCIS.Core.API/_PipelineExtensions/IRacisHostFile/MultiDiskStaticFilesMiddleware.cs @@ -85,8 +85,7 @@ namespace IRaCIS.Core.API if (defaultFileProvider.GetFileInfo(path).Exists) { - var actrualPath = defaultFileProvider.GetFileInfo(path).PhysicalPath; - var actrualPath2 = defaultFileProvider.GetFileInfo(path).PhysicalPath; + var actrualPath = defaultFileProvider.GetFileInfo(path).PhysicalPath; await context.Response.SendFileAsync(new PhysicalFileInfo(new FileInfo(actrualPath))); diff --git a/IRaCIS.Core.Application/Helper/FileStoreHelper.cs b/IRaCIS.Core.Application/Helper/FileStoreHelper.cs index b00f245f4..dbdd13cd4 100644 --- a/IRaCIS.Core.Application/Helper/FileStoreHelper.cs +++ b/IRaCIS.Core.Application/Helper/FileStoreHelper.cs @@ -545,7 +545,7 @@ public static class FileStoreHelper } //默认存储的路径 - var defaultStoreRootFolder = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment); + var defaultStoreRootFolder = FileStoreHelper.GetIRaCISRootPath(_hostEnvironment); DriveInfo defaultDrive = new DriveInfo(Path.GetPathRoot(defaultStoreRootFolder));