浏览代码

押金推送的地方加上盟主10运营中心5的奖励发放

lcl 1 年之前
父节点
当前提交
3f40574c5e
共有 1 个文件被更改,包括 14 次插入16 次删除
  1. 14 16
      AppStart/Helper/SycnSpServer/SycnSpActiveService.cs

+ 14 - 16
AppStart/Helper/SycnSpServer/SycnSpActiveService.cs

@@ -60,22 +60,20 @@ namespace MySystem
                                 decimal CheckMoney = kqproduct.ActTradeAmount > 0 ? kqproduct.ActTradeAmount : 1000;
                                 int CheckDays = 30;
                                 SycnSpTradeService.Instance.ActPos(db, pos, CheckMoney, CheckDays);
-                                // if(pos.ActivationState == 1)
-                                // {
-                                //     decimal Deposit = decimal.Parse(function.CheckNum(pos.SeoKeyword));
-                                //     DateTime now = DateTime.Now;
-                                //     if (Deposit > 0 && pos.LeaderUserId > 0 && db.Leaders.Any(m => m.Id == pos.LeaderUserId && m.ExpiredDate > now) && pos.BindingTime > now.AddDays(-CheckDays) && pos.CardType < 100)
-                                //     {
-                                //         function.WriteLog("大盟主奖发放", "开机奖励在激活中监控");
-                                //         RedisDbconn.Instance.AddList("LeaderPrizeQueue", pos.Id);
-                                //     }
-                                //     //发放运营中心奖励
-                                //     if (Deposit > 0 && pos.BindingTime > now.AddDays(-CheckDays) && pos.CardType < 100)
-                                //     {
-                                //         function.WriteLog("运营中心奖发放", "开机奖励在激活中监控");
-                                //         RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
-                                //     }
-                                // }
+                                if(pos.ActivationState == 1)
+                                {
+                                    decimal Deposit = decimal.Parse(function.CheckNum(pos.SeoKeyword));
+                                    DateTime now = DateTime.Now;
+                                    if (Deposit > 0 && pos.LeaderUserId > 0 && db.Leaders.Any(m => m.Id == pos.LeaderUserId && m.ExpiredDate > now) && pos.BindingTime > now.AddDays(-CheckDays) && pos.CardType < 100)
+                                    {
+                                        RedisDbconn.Instance.AddList("LeaderPrizeQueue", pos.Id);
+                                    }
+                                    //发放运营中心奖励
+                                    if (Deposit > 0 && pos.BindingTime > now.AddDays(-CheckDays) && pos.CardType < 100)
+                                    {
+                                        RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
+                                    }
+                                }
                             }
 
                             ActivateRecord edit = spdb.ActivateRecord.FirstOrDefault(m => m.Id == act.Id);