Просмотр исходного кода

存储广电卡商品类型字段

lcl 2 лет назад
Родитель
Сommit
4416b66985
2 измененных файлов с 5 добавлено и 4 удалено
  1. 1 0
      Areas/Admin/Controllers/MainServer/TradeRecordController.cs
  2. 4 4
      Startup.cs

+ 1 - 0
Areas/Admin/Controllers/MainServer/TradeRecordController.cs

@@ -433,6 +433,7 @@ namespace MySystem.Areas.Admin.Controllers
                         MerSnNo = SimNo, //序列号
                         MerName = AccountName, //商户名称
                         MerNo = PhoneNumber, //商户编号
+                        Remark = ProductType,
                         Field1 = Province,
                         Field2 = City,
                         Field3 = ProductName,

+ 4 - 4
Startup.cs

@@ -167,10 +167,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 + "'");