|
@@ -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)
|