瀏覽代碼

好哒如果是小微不发奖励

lcl 7 月之前
父節點
當前提交
833cb240e2
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      AppStart/Helper/SycnSpServer/SycnSpActiveService.cs

+ 3 - 3
AppStart/Helper/SycnSpServer/SycnSpActiveService.cs

@@ -218,16 +218,16 @@ namespace MySystem
                                     {
                                     {
                                         StatService.Instance.doActiveReward(db, merchant, pos, pos.BuyUserId, user.ParentNav, TopUserId, Prize);
                                         StatService.Instance.doActiveReward(db, merchant, pos, pos.BuyUserId, user.ParentNav, TopUserId, Prize);
                                     }
                                     }
-                                    if (pos.CardType < 100)
+                                    if (pos.CardType < 100 && Prize > 0)
                                     {
                                     {
                                         RedisDbconn.Instance.AddList("OpenRewardQueue", pos.Id.ToString());
                                         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)
+                                    if (Deposit > 0 && pos.LeaderUserId > 0 && db.Leaders.Any(m => m.Id == pos.LeaderUserId && m.ExpiredDate > now) && pos.CardType < 100 && Prize > 0)
                                     {
                                     {
                                         RedisDbconn.Instance.AddList("LeaderPrizeQueue", pos.Id);
                                         RedisDbconn.Instance.AddList("LeaderPrizeQueue", pos.Id);
                                     }
                                     }
                                     //发放运营中心奖励
                                     //发放运营中心奖励
-                                    if (Deposit > 0 && pos.CardType < 100)
+                                    if (Deposit > 0 && pos.CardType < 100 && Prize > 0)
                                     {
                                     {
                                         RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
                                         RedisDbconn.Instance.AddList("OperatePrizeQueue", pos.Id);
                                     }
                                     }