Przeglądaj źródła

营训机具,合伙人不返购机奖励

lcl 1 rok temu
rodzic
commit
791fcb1c7a

BIN
.DS_Store


+ 9 - 1
AppStart/Helper/PosCouponPrize/PosCouponPrizeService.cs

@@ -122,6 +122,7 @@ namespace MySystem
                                 decimal GetPrize = CurBuyPrize - BuyPrize;
                                 if(GetPrize > 0) 
                                 {
+                                    bool PrizeFlag = true;
                                     int ChangeType = 118;
                                     if(parentUser.OperateLevel == 1)
                                     {
@@ -130,8 +131,15 @@ namespace MySystem
                                     if(parentUser.OperateLevel > 1)
                                     {
                                         ChangeType = 128;
+                                        if(function.CheckNull(RedisDbconn.Instance.Get<string>("YingXunUser")).Contains("," + orderUser.Id + ","))
+                                        {
+                                            PrizeFlag = false;
+                                        }
+                                    }
+                                    if(PrizeFlag)
+                                    {
+                                        OpAccount(db, order.Id, parentUser.Id, CurBuyPrize - BuyPrize, order.BuyCount, ChangeType);
                                     }
-                                    OpAccount(db, order.Id, parentUser.Id, CurBuyPrize - BuyPrize, order.BuyCount, ChangeType);
                                     BuyPrize = CurBuyPrize;
                                 }
                             }