|
@@ -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;
|
|
|
}
|
|
|
}
|