Sfoglia il codice sorgente

修复合伙人购机奖,向上判断条件,如果没有得奖则不设置标记金额

lcl 1 anno fa
parent
commit
53c05109be
1 ha cambiato i file con 10 aggiunte e 4 eliminazioni
  1. 10 4
      AppStart/Helper/PosCouponPrize/PosCouponPrizeService.cs

+ 10 - 4
AppStart/Helper/PosCouponPrize/PosCouponPrizeService.cs

@@ -113,8 +113,11 @@ namespace MySystem
                             //购机奖
                             decimal CurBuyPrize = GetBuyPrize(parentUser);
                             decimal GetPrize = CurBuyPrize - BuyPrize;
-                            if(GetPrize > 0) OpAccount(db, order.Id, parentUser.Id, GetPrize, order.BuyCount, 128);
-                            BuyPrize = CurBuyPrize;
+                            if(GetPrize > 0)
+                            {
+                                OpAccount(db, order.Id, parentUser.Id, GetPrize, order.BuyCount, 128);
+                                BuyPrize = CurBuyPrize;
+                            }
 
                             if(!BackAccountFlag)
                             {
@@ -132,8 +135,11 @@ namespace MySystem
                             {
                                 decimal CurBuyPrize = GetBuyPrize(parentUser);
                                 decimal GetPrize = CurBuyPrize - BuyPrize;
-                                if(GetPrize > 0) OpAccount(db, order.Id, parentUser.Id, CurBuyPrize - BuyPrize, order.BuyCount, 118);
-                                BuyPrize = CurBuyPrize;
+                                if(GetPrize > 0) 
+                                {
+                                    OpAccount(db, order.Id, parentUser.Id, CurBuyPrize - BuyPrize, order.BuyCount, 118);
+                                    BuyPrize = CurBuyPrize;
+                                }
                             }
 
                             if(!BackAccountFlag)