瀏覽代碼

立刷30元奖励逻辑调整,触发式

lcl 1 年之前
父節點
當前提交
260ea7f4a5
共有 2 個文件被更改,包括 11 次插入12 次删除
  1. 0 10
      AppStart/Helper/StatService.cs
  2. 11 2
      AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

+ 0 - 10
AppStart/Helper/StatService.cs

@@ -344,11 +344,6 @@ namespace MySystem
                                 doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 50);
                             }
                         }
-                        //9月1日-9月30日立刷机具刷5000激活时额外奖励30元立刷活动奖
-                        if(pos.BrandId == 6 && pos.CreditTrade >= 5000M && pos.ActivationTime >= DateTime.Parse("2023-08-31 00:00:00") && pos.ActivationTime < DateTime.Parse("2023-10-01 00:00:00"))
-                        {
-                            doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 30, 133);
-                        }
                         PosMachinesTwo edit = db.PosMachinesTwo.FirstOrDefault(m => m.Id == pos.Id);
                         if(edit != null)
                         {
@@ -424,11 +419,6 @@ namespace MySystem
                             //金控活动机返奖励
                             doJk30(db, pos, merchant, GetUserId, ParentNav, TopUserId);
                         }
-                        //9月1日-9月30日立刷机具刷5000激活时额外奖励30元立刷活动奖
-                        if(pos.BrandId == 6 && pos.CreditTrade >= 5000M && pos.ActivationTime >= DateTime.Parse("2023-08-31 00:00:00") && pos.ActivationTime < DateTime.Parse("2023-10-01 00:00:00"))
-                        {
-                            doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 30, 133);
-                        }
                         PosMachinesTwo edit = db.PosMachinesTwo.FirstOrDefault(m => m.Id == pos.Id);
                         if(edit != null)
                         {

+ 11 - 2
AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

@@ -447,6 +447,11 @@ namespace MySystem
                                         {
                                             LiShuaActPrize(db, pos, 40);
                                         }
+                                        //9月1日-9月30日立刷机具刷5000激活时额外奖励30元立刷活动奖
+                                        if(pos.BrandId == 6 && pos.CreditTrade >= 5000M && pos.ActivationTime >= DateTime.Parse("2023-08-31 00:00:00") && pos.ActivationTime < DateTime.Parse("2023-10-01 00:00:00"))
+                                        {
+                                            LiShuaActPrize(db, pos, 30);
+                                        }
                                         db.SpOrderNos.Add(new PxcModels.SpOrderNos()
                                         {
                                             OrderNo = trade.TradeSerialNo
@@ -504,11 +509,15 @@ namespace MySystem
                 }
                 if(prize == 50)
                 {
-                    StatService.Instance.doActiveReward(db, merchant, pos, getUser.Id, getUser.ParentNav, BuyTopUserId, 50);
+                    StatService.Instance.doActiveReward(db, merchant, pos, getUser.Id, getUser.ParentNav, BuyTopUserId, prize);
                 }
                 if(prize == 40)
                 {
-                    StatService.Instance.doActiveReward(db, merchant, pos, getUser.Id, getUser.ParentNav, BuyTopUserId, 40, 12);
+                    StatService.Instance.doActiveReward(db, merchant, pos, getUser.Id, getUser.ParentNav, BuyTopUserId, prize, 12);
+                }
+                if(prize == 30)
+                {
+                    StatService.Instance.doActiveReward(db, merchant, pos, getUser.Id, getUser.ParentNav, BuyTopUserId, prize, 133);
                 }
             }
         }