修改文件路径

Uat_Study
hang 2023-05-16 16:38:06 +08:00
parent 98a9a62b2d
commit 26e246e71a
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ public static class FileStoreHelper
public static string GetBestStoreDisk(IWebHostEnvironment _hostEnvironment) public static string GetBestStoreDisk(IWebHostEnvironment _hostEnvironment)
{ {
var json = File.ReadAllText("appsettings.json"); var json = File.ReadAllText( Path.Combine(_hostEnvironment.ContentRootPath, "appsettings.json"));
JObject jsonObject = JObject.Parse(json, new JsonLoadSettings() { CommentHandling = CommentHandling.Load }); JObject jsonObject = JObject.Parse(json, new JsonLoadSettings() { CommentHandling = CommentHandling.Load });