Forráskód Böngészése

好哒4个品牌激活奖励不判断商户号

lcl 11 hónapja
szülő
commit
d3d394ff5b
1 módosított fájl, 10 hozzáadás és 1 törlés
  1. 10 1
      AppStart/Helper/StatService.cs

+ 10 - 1
AppStart/Helper/StatService.cs

@@ -779,7 +779,16 @@ namespace MySystem
                 RedisDbconn.Instance.AddList("ActiveRewardFailQueue", "{\"PosId\":\"" + pos.Id + "\",\"UserId\":\"" + GetUserId + "\",\"ActPrize\":\"" + ActPrize + "\",\"ChangeType\":\"" + ChangeType + "\",\"ActType\":\"" + ActType + "\"}");
                 return;
             }
-            bool check = db.ActiveReward.Any(m => m.KqMerNo == MerNo && m.RewardAmount == ActPrize && m.ActType == ActType);
+            List<int> BrandIds = new List<int>();
+            BrandIds.Add(18);
+            BrandIds.Add(19);
+            BrandIds.Add(20);
+            BrandIds.Add(21);
+            bool check = false;
+            if(!BrandIds.Contains(pos.BrandId))
+            {
+                check = db.ActiveReward.Any(m => m.KqMerNo == MerNo && m.RewardAmount == ActPrize && m.ActType == ActType);
+            }
             bool check1 = db.ActiveReward.Any(m => m.KqSnNo == pos.PosSn && m.RewardAmount == ActPrize && m.ActType == ActType);
             if (!check && !check1)
             {