Browse Source

广电卡电渠首充100发奖判断,有可能第二次才推送100首充金额

lcl 10 months ago
parent
commit
78f6e2381f
1 changed files with 17 additions and 0 deletions
  1. 17 0
      AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

+ 17 - 0
AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

@@ -942,6 +942,23 @@ namespace MySystem
                 //推送激活数据
                 if(Deposit == 0) Utils.Instance.SendActData(pos);
             }
+            else if (pos.ActivationState == 1 && pos.BrandId == 14)
+            {
+                if(pos.BindingTime > now.AddDays(-CheckDays) && pos.CardType < 100 && PrizeFlag)
+                {
+                    RedisDbconn.Instance.AddList("OpenRewardQueue", pos.Id.ToString());
+                    if(pos.BrandId == 14)
+                    {
+                        RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
+                        PxcModels.Leaders leader = db.Leaders.FirstOrDefault(m => m.Id == pos.LeaderUserId) ?? new PxcModels.Leaders();
+                        DateTime ExpiredDate = leader.ExpiredDate == null ? DateTime.Parse("1900-01-01") : leader.ExpiredDate.Value;
+                        if(pos.LeaderUserId > 0 && ExpiredDate > now)
+                        {
+                            RedisDbconn.Instance.AddList("LeaderPrizeQueue", pos.Id);
+                        }
+                    }
+                }
+            }
             Utils.Instance.PrizeRecord(1, pos.PosSn, "条件:已激活;当前状态:" + pos.ActivationState);
             Utils.Instance.PrizeRecord(1, pos.PosSn, "条件:绑定后台30天到60天之间;绑定时间:" + pos.BindingTime.Value.ToString() + "");
             Utils.Instance.PrizeRecord(1, pos.PosSn, "条件:贷记卡是否刷满10000;贷记卡交易:" + pos.CreditTrade + "");