|
@@ -98,21 +98,21 @@ namespace MySystem
|
|
|
TopUserId = int.Parse(user.ParentNav.Trim(',').Replace(",,", ",").Split(',')[0]);
|
|
|
}
|
|
|
StatService.Instance.doActiveReward(db, merchant, pos, pos.BuyUserId, user.ParentNav, TopUserId, Prize);
|
|
|
- }
|
|
|
- DateTime now = DateTime.Now;
|
|
|
- SycnSpTradeService.Instance.ActPos(db, pos, 0, 0, false);
|
|
|
- if(pos.CardType < 100)
|
|
|
- {
|
|
|
- RedisDbconn.Instance.AddList("OpenRewardQueue", pos.Id.ToString());
|
|
|
- }
|
|
|
- if (Deposit > 0 && pos.LeaderUserId > 0 && db.Leaders.Any(m => m.Id == pos.LeaderUserId && m.ExpiredDate > now) && pos.CardType < 100)
|
|
|
- {
|
|
|
- RedisDbconn.Instance.AddList("LeaderPrizeQueue", pos.Id);
|
|
|
- }
|
|
|
- //发放运营中心奖励
|
|
|
- if (Deposit > 0 && pos.CardType < 100)
|
|
|
- {
|
|
|
- RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
|
|
|
+ DateTime now = DateTime.Now;
|
|
|
+ SycnSpTradeService.Instance.ActPos(db, pos, 0, 0, false);
|
|
|
+ if(pos.CardType < 100)
|
|
|
+ {
|
|
|
+ RedisDbconn.Instance.AddList("OpenRewardQueue", pos.Id.ToString());
|
|
|
+ }
|
|
|
+ if (Deposit > 0 && pos.LeaderUserId > 0 && db.Leaders.Any(m => m.Id == pos.LeaderUserId && m.ExpiredDate > now) && pos.CardType < 100)
|
|
|
+ {
|
|
|
+ RedisDbconn.Instance.AddList("LeaderPrizeQueue", pos.Id);
|
|
|
+ }
|
|
|
+ //发放运营中心奖励
|
|
|
+ if (Deposit > 0 && pos.CardType < 100)
|
|
|
+ {
|
|
|
+ RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|