@@ -45,7 +45,11 @@ namespace MySystem
}
if(pos.BrandId == 23 || pos.BrandId == 24 || pos.BrandId == 25 || pos.BrandId == 26)
{
- ChangeAmount = 4.5M;
+ PxcModels.WifiTradeRecord trade = db.WifiTradeRecord.FirstOrDefault(m => m.SnNo == pos.PosSn);
+ if (trade != null)
+ {
+ ChangeAmount = trade.TradeAmount * 0.015M;
+ }
int LeaderUserId = pos.LeaderUserId;
UserAccount account = db.UserAccount.FirstOrDefault(m => m.Id == LeaderUserId);
@@ -62,6 +62,14 @@ namespace MySystem
ChangeAmount = 19 * 0.05M;
+ if(pos.BrandId == 23 || pos.BrandId == 24 || pos.BrandId == 25 || pos.BrandId == 26)
+ ChangeAmount = trade.TradeAmount * 0.005M;
UserAccount account = db.UserAccount.FirstOrDefault(m => m.Id == OpId);
if (account == null)
@@ -1249,7 +1249,11 @@ namespace MySystem
- Prize = 3;
+ Prize = trade.TradeAmount * 0.03M;
string[] ParentNavs = ParentNav.Trim(',').Replace(",,", ",").Split(',');
for (int i = ParentNavs.Length - 1; i >= 0; i--)