|
@@ -477,6 +477,20 @@ namespace MySystem
|
|
if(pos.BindingTime.Value.AddDays(30) >= pos.ActivationTime)
|
|
if(pos.BindingTime.Value.AddDays(30) >= pos.ActivationTime)
|
|
{
|
|
{
|
|
doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 30);
|
|
doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 30);
|
|
|
|
+
|
|
|
|
+ DateTime now = pos.ActivationTime.Value;
|
|
|
|
+ //盟主奖励
|
|
|
|
+ if (pos.LeaderUserId > 0 && db.Leaders.Any(m => m.Id == pos.LeaderUserId && m.ExpiredDate > now) && pos.BindingTime > now.AddDays(-30) && pos.CardType < 100)
|
|
|
|
+ {
|
|
|
|
+ function.WriteLog("大盟主奖发放", "开机奖励在激活中监控");
|
|
|
|
+ RedisDbconn.Instance.AddList("LeaderPrizeQueue", pos.Id);
|
|
|
|
+ }
|
|
|
|
+ //运营中心奖励
|
|
|
|
+ if (pos.BindingTime > now.AddDays(-30) && pos.CardType < 100)
|
|
|
|
+ {
|
|
|
|
+ function.WriteLog("运营中心奖发放", "开机奖励在激活中监控");
|
|
|
|
+ RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
PosMachinesTwo edit = db.PosMachinesTwo.FirstOrDefault(m => m.Id == pos.Id);
|
|
PosMachinesTwo edit = db.PosMachinesTwo.FirstOrDefault(m => m.Id == pos.Id);
|
|
if(edit != null)
|
|
if(edit != null)
|
|
@@ -571,6 +585,20 @@ namespace MySystem
|
|
if(pos.BindingTime.Value.AddDays(30) >= pos.ActivationTime)
|
|
if(pos.BindingTime.Value.AddDays(30) >= pos.ActivationTime)
|
|
{
|
|
{
|
|
doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 30);
|
|
doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 30);
|
|
|
|
+
|
|
|
|
+ DateTime now = pos.ActivationTime.Value;
|
|
|
|
+ //盟主奖励
|
|
|
|
+ if (pos.LeaderUserId > 0 && db.Leaders.Any(m => m.Id == pos.LeaderUserId && m.ExpiredDate > now) && pos.BindingTime > now.AddDays(-30) && pos.CardType < 100)
|
|
|
|
+ {
|
|
|
|
+ function.WriteLog("大盟主奖发放", "开机奖励在激活中监控");
|
|
|
|
+ RedisDbconn.Instance.AddList("LeaderPrizeQueue", pos.Id);
|
|
|
|
+ }
|
|
|
|
+ //运营中心奖励
|
|
|
|
+ if (pos.BindingTime > now.AddDays(-30) && pos.CardType < 100)
|
|
|
|
+ {
|
|
|
|
+ function.WriteLog("运营中心奖发放", "开机奖励在激活中监控");
|
|
|
|
+ RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
PosMachinesTwo item = db.PosMachinesTwo.FirstOrDefault(m => m.Id == pos.Id);
|
|
PosMachinesTwo item = db.PosMachinesTwo.FirstOrDefault(m => m.Id == pos.Id);
|
|
if(item != null)
|
|
if(item != null)
|
|
@@ -619,6 +647,20 @@ namespace MySystem
|
|
if(pos.BindingTime.Value.AddDays(30) >= pos.ActivationTime)
|
|
if(pos.BindingTime.Value.AddDays(30) >= pos.ActivationTime)
|
|
{
|
|
{
|
|
doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 30);
|
|
doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 30);
|
|
|
|
+
|
|
|
|
+ DateTime now = pos.ActivationTime.Value;
|
|
|
|
+ //盟主奖励
|
|
|
|
+ if (pos.LeaderUserId > 0 && db.Leaders.Any(m => m.Id == pos.LeaderUserId && m.ExpiredDate > now) && pos.BindingTime > now.AddDays(-30) && pos.CardType < 100)
|
|
|
|
+ {
|
|
|
|
+ function.WriteLog("大盟主奖发放", "开机奖励在激活中监控");
|
|
|
|
+ RedisDbconn.Instance.AddList("LeaderPrizeQueue", pos.Id);
|
|
|
|
+ }
|
|
|
|
+ //运营中心奖励
|
|
|
|
+ if (pos.BindingTime > now.AddDays(-30) && pos.CardType < 100)
|
|
|
|
+ {
|
|
|
|
+ function.WriteLog("运营中心奖发放", "开机奖励在激活中监控");
|
|
|
|
+ RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
function.WriteLog("ActPrize:30", "实时处理来客吧0押激活奖励");
|
|
function.WriteLog("ActPrize:30", "实时处理来客吧0押激活奖励");
|
|
PosMachinesTwo item = db.PosMachinesTwo.FirstOrDefault(m => m.Id == pos.Id);
|
|
PosMachinesTwo item = db.PosMachinesTwo.FirstOrDefault(m => m.Id == pos.Id);
|