浏览代码

屏蔽广电卡激活奖励
激活条件去掉1分钱的逻辑

lcl 1 年之前
父节点
当前提交
b72aed2710
共有 3 个文件被更改,包括 11 次插入9 次删除
  1. 1 1
      AppStart/Helper/StatService.cs
  2. 6 4
      AppStart/Helper/SycnSpServer/SycnSpBindService.cs
  3. 4 4
      Startup.cs

+ 1 - 1
AppStart/Helper/StatService.cs

@@ -413,7 +413,7 @@ namespace MySystem
                         }
                         else if(pos.BrandId == 14)
                         {
-                            doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 30);
+                            // doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 30);
                         }
                         else
                         {

+ 6 - 4
AppStart/Helper/SycnSpServer/SycnSpBindService.cs

@@ -31,7 +31,7 @@ namespace MySystem
                     PxcModels.WebCMSEntities db = new PxcModels.WebCMSEntities();
                     DateTime start = DateTime.Now.AddDays(-5);
                     int StartId = int.Parse(function.CheckInt(function.ReadInstance("/SycnSp/BindRecordId.txt")));
-                    var Binds = spdb.BindRecord.Select(m => new { m.Id, m.CreateTime, m.Status, m.MerNo, m.MerSnNo, m.ProductType, m.Field1, m.Field5 }).Where(m => m.Id >= StartId && m.CreateTime >= start && m.Status == 1).OrderByDescending(m => m.Id).ToList();
+                    var Binds = spdb.BindRecord.Select(m => new { m.Id, m.CreateTime, m.Status, m.MerNo, m.MerSnNo, m.ProductType, m.Remark, m.Field1, m.Field3, m.Field5 }).Where(m => m.Id >= StartId && m.CreateTime >= start && m.Status == 1).OrderByDescending(m => m.Id).ToList();
                     foreach (var Bind in Binds)
                     {
                         var tran = db.Database.BeginTransaction();
@@ -93,6 +93,10 @@ namespace MySystem
                                     pos.BindingState = 1;
                                     pos.BindingTime = Bind.CreateTime;
                                     pos.Status = 0;
+                                    if(pos.BrandId == 14 && Bind.Field3 == "副卡")
+                                    {
+                                        pos.Detail = "1";
+                                    }
                                     PxcModels.MachineForMerNo merFor = db.MachineForMerNo.FirstOrDefault(m => m.MerNo == Bind.MerNo);
                                     if (merFor == null)
                                     {
@@ -131,9 +135,7 @@ namespace MySystem
 
                                     if(pos.BrandId == 14 && Bind.Field5 == "已激活")
                                     {
-                                        pos.CreditTrade = 0.01M;
-                                        db.SaveChanges();
-                                        SycnSpTradeService.Instance.ActPos(db, pos, 0.01M, 30);
+                                        SycnSpTradeService.Instance.ActPos(db, pos, 0, 30);
                                     }
 
                                     if(pos.BuyUserId == 0 && pos.PreUserId > 0)

+ 4 - 4
Startup.cs

@@ -270,10 +270,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)