Commit 65c689f8 authored by 黄奎's avatar 黄奎

页面修改

parent 65fef850
...@@ -19,6 +19,7 @@ using System.Text.RegularExpressions; ...@@ -19,6 +19,7 @@ using System.Text.RegularExpressions;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Web; using System.Web;
using Microsoft.Extensions.Hosting;
namespace Mall.Common namespace Mall.Common
{ {
...@@ -37,9 +38,16 @@ namespace Mall.Common ...@@ -37,9 +38,16 @@ namespace Mall.Common
public readonly static IConfiguration Configuration; public readonly static IConfiguration Configuration;
static Config() static Config()
{ {
Configuration= new ConfigurationBuilder() try
.Add(new JsonConfigurationSource { Path = "appsettings.json", ReloadOnChange = true }) {
.Build(); Configuration = new ConfigurationBuilder()
.Add(new JsonConfigurationSource { Path = "appsettings.json", ReloadOnChange = true })
.Build();
}
catch (Exception ex)
{
Common.Plugin.LogHelper.Write(ex, "Config");
}
} }
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment