|
@@ -534,18 +534,21 @@ namespace MySystem
|
|
|
//0押金机具返盟主奖励、运营中心奖励
|
|
|
if(pos.ActivationState == 1 && function.CheckNum(pos.SeoKeyword) == "0" && pos.CreditTrade >= 5000)
|
|
|
{
|
|
|
- DateTime now = pos.ActivationTime.Value;
|
|
|
- //盟主奖励
|
|
|
- if (pos.LeaderUserId > 0 && db.Leaders.Any(m => m.Id == pos.LeaderUserId && m.ExpiredDate > now) && pos.BindingTime > now.AddDays(-CheckDays) && pos.CardType < 100)
|
|
|
+ if(pos.BindingTime >= DateTime.Parse("2024-04-01 00:00:00"))
|
|
|
{
|
|
|
- function.WriteLog("大盟主奖发放", "开机奖励在激活中监控");
|
|
|
- RedisDbconn.Instance.AddList("LeaderPrizeQueue", pos.Id);
|
|
|
- }
|
|
|
- //运营中心奖励
|
|
|
- if (pos.BindingTime > now.AddDays(-CheckDays) && pos.CardType < 100)
|
|
|
- {
|
|
|
- function.WriteLog("运营中心奖发放", "开机奖励在激活中监控");
|
|
|
- RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
|
|
|
+ DateTime now = pos.ActivationTime.Value;
|
|
|
+ //盟主奖励
|
|
|
+ if (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 (pos.BindingTime > now.AddDays(-CheckDays) && pos.CardType < 100)
|
|
|
+ {
|
|
|
+ function.WriteLog("运营中心奖发放", "开机奖励在激活中监控");
|
|
|
+ RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|