ソースを参照

测试服务器数据库指定为KxsMainServer

lcl 1 年間 前
コミット
41fc5e18b5
2 ファイル変更5 行追加5 行削除
  1. 1 1
      AppStart/Helper/TimeOutPosChargeService.cs
  2. 4 4
      Startup.cs

+ 1 - 1
AppStart/Helper/TimeOutPosChargeService.cs

@@ -3,7 +3,7 @@ using System.Collections.Generic;
 using System.Data;
 using System.Linq;
 using System.Threading;
-using MySystem.Models;
+using MySystem.PxcModels;
 using Library;
 
 namespace MySystem

+ 4 - 4
Startup.cs

@@ -272,10 +272,10 @@ namespace MySystem
         {
             string conn = Configuration["Setting:SqlConnStr"];
             string dbName = "KxsMainServer";
-            if(Library.ConfigurationManager.EnvironmentFlag == 2)
-            {
-                dbName = "KxsProfitServer";
-            }
+            // if(Library.ConfigurationManager.EnvironmentFlag == 2)
+            // {
+            //     dbName = "KxsProfitServer";
+            // }
             Dictionary<string, Dictionary<string, string>> tables = new Dictionary<string, Dictionary<string, string>>();
             System.Data.DataTable tablecollection = Library.CustomerSqlConn.dtable("select DISTINCT TABLE_NAME from information_schema.columns where table_schema = '" + dbName + "'", conn);
             foreach (System.Data.DataRow subtable in tablecollection.Rows)