|
@@ -64,13 +64,17 @@ namespace MySystem
|
|
{
|
|
{
|
|
decimal Deposit = decimal.Parse(function.CheckNum(pos.SeoKeyword));
|
|
decimal Deposit = decimal.Parse(function.CheckNum(pos.SeoKeyword));
|
|
DateTime now = DateTime.Now;
|
|
DateTime now = DateTime.Now;
|
|
|
|
+
|
|
|
|
+ function.WriteLog("大盟主---Deposit:" + Deposit + ";LeaderUserId:" + pos.LeaderUserId + ";pos.IsFirst:" + pos.IsFirst + ";pos.BindingTime:" + pos.BindingTime + ";now.AddDays(-CheckDays):" + now.AddDays(-CheckDays) + ";", "押金推送发放奖励监控");
|
|
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)
|
|
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);
|
|
RedisDbconn.Instance.AddList("LeaderPrizeQueue", pos.Id);
|
|
}
|
|
}
|
|
//发放运营中心奖励
|
|
//发放运营中心奖励
|
|
if (Deposit > 0 && pos.BindingTime > now.AddDays(-CheckDays) && pos.CardType < 100)
|
|
if (Deposit > 0 && pos.BindingTime > now.AddDays(-CheckDays) && pos.CardType < 100)
|
|
{
|
|
{
|
|
|
|
+ function.WriteLog("运营中心奖发放", "押金推送发放奖励监控");
|
|
RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
|
|
RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
|
|
}
|
|
}
|
|
}
|
|
}
|