相对路径定位

Uat_Study
hang 2022-05-19 16:58:50 +08:00
parent 76aa9de80c
commit ca5f8d839c
1 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ namespace IRaCIS.Core.Application.Contracts
{ {
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).IfNullThrowException().FullName; var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).IfNullThrowException().FullName;
var _fileStorePath = Path.Combine(rootPath, relativePath); var _fileStorePath = Path.Combine(rootPath, relativePath.Replace('/', '\\'));
var storePreviewPath = _fileStorePath + ".preview.jpeg"; var storePreviewPath = _fileStorePath + ".preview.jpeg";