|
@@ -60,22 +60,20 @@ namespace MySystem
|
|
decimal CheckMoney = kqproduct.ActTradeAmount > 0 ? kqproduct.ActTradeAmount : 1000;
|
|
decimal CheckMoney = kqproduct.ActTradeAmount > 0 ? kqproduct.ActTradeAmount : 1000;
|
|
int CheckDays = 30;
|
|
int CheckDays = 30;
|
|
SycnSpTradeService.Instance.ActPos(db, pos, CheckMoney, CheckDays);
|
|
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);
|
|
ActivateRecord edit = spdb.ActivateRecord.FirstOrDefault(m => m.Id == act.Id);
|