Browse Source

回归配置环境

lcl 1 year ago
parent
commit
b020537281
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Startup.cs

+ 2 - 3
Startup.cs

@@ -117,15 +117,14 @@ namespace MySystem
             {
             {
                 app.UseDeveloperExceptionPage();
                 app.UseDeveloperExceptionPage();
                 // app.UseExceptionHandler("/Home/Error");
                 // app.UseExceptionHandler("/Home/Error");
-                // Library.ConfigurationManager.EnvironmentFlag = 1;
+                Library.ConfigurationManager.EnvironmentFlag = 1;
             }
             }
             else
             else
             {
             {
                 app.UseExceptionHandler("/Home/Error");
                 app.UseExceptionHandler("/Home/Error");
                 app.UseHsts();
                 app.UseHsts();
-                // Library.ConfigurationManager.EnvironmentFlag = 2;
+                Library.ConfigurationManager.EnvironmentFlag = 2;
             }
             }
-            Library.ConfigurationManager.EnvironmentFlag = 1;
             Library.function.WritePage("/", "WebRootPath.txt", env.WebRootPath);
             Library.function.WritePage("/", "WebRootPath.txt", env.WebRootPath);
             // app.UseStatusCodePagesWithReExecute("/public/errpage/pc/{0}.html");
             // app.UseStatusCodePagesWithReExecute("/public/errpage/pc/{0}.html");