Sfoglia il codice sorgente

正式数据库切换

lcl 2 anni fa
parent
commit
4cba94289c
4 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. BIN
      .DS_Store
  2. 4 4
      Startup.cs
  3. BIN
      wwwroot/.DS_Store
  4. BIN
      wwwroot/layuiadmin/.DS_Store

BIN
.DS_Store


+ 4 - 4
Startup.cs

@@ -176,10 +176,10 @@ namespace MySystem
         private void initMainServer(string Env)
         {
             string dbName = "KxsMainServer";
-            // if (Env == "Production")
-            // {
-            //     dbName = "KxsProfitServer";
-            // }
+            if (Env == "Production")
+            {
+                dbName = "KxsProfitServer";
+            }
             Dictionary<string, Dictionary<string, string>> tables = new Dictionary<string, Dictionary<string, string>>();
             Library.OtherMySqlConn.connstr = Configuration["Setting:SqlConnStr"];
             System.Data.DataTable tablecollection = Library.OtherMySqlConn.dtable("select DISTINCT TABLE_NAME from information_schema.columns where table_schema = '" + dbName + "'");

BIN
wwwroot/.DS_Store


BIN
wwwroot/layuiadmin/.DS_Store