|
@@ -207,7 +207,8 @@ namespace MySystem
|
|
|
}).Entity;
|
|
}).Entity;
|
|
|
db.SaveChanges();
|
|
db.SaveChanges();
|
|
|
}
|
|
}
|
|
|
- amountStat.TradeAmount += TradeAmount + MoreAmount;
|
|
|
|
|
|
|
+ if(amountStat.TradeAmount + TradeAmount + MoreAmount <= amountStat.MaxAmount) amountStat.TradeAmount += TradeAmount + MoreAmount;
|
|
|
|
|
+ else amountStat.TradeAmount = amountStat.MaxAmount;
|
|
|
|
|
|
|
|
StatTradeAmountEverDayForUser(db, merIds.UserId, TradeAmount + MoreAmount, TradeDate);
|
|
StatTradeAmountEverDayForUser(db, merIds.UserId, TradeAmount + MoreAmount, TradeDate);
|
|
|
}
|
|
}
|
|
@@ -686,7 +687,7 @@ namespace MySystem
|
|
|
if(rootStat != null)
|
|
if(rootStat != null)
|
|
|
{
|
|
{
|
|
|
decimal amt = rootStat.MaxAmount / 9;
|
|
decimal amt = rootStat.MaxAmount / 9;
|
|
|
- decimal min = amt * 0.08M;
|
|
|
|
|
|
|
+ decimal min = amt * 0.98M;
|
|
|
decimal max = amt * 1.02M;
|
|
decimal max = amt * 1.02M;
|
|
|
amt = function.get_Random((int)min, (int)max);
|
|
amt = function.get_Random((int)min, (int)max);
|
|
|
HelpProfitAmountSummary selfStat = db.HelpProfitAmountSummary.FirstOrDefault(m => m.UserId == UserId && m.TradeMonth == TradeMonth);
|
|
HelpProfitAmountSummary selfStat = db.HelpProfitAmountSummary.FirstOrDefault(m => m.UserId == UserId && m.TradeMonth == TradeMonth);
|
|
@@ -711,6 +712,7 @@ namespace MySystem
|
|
|
{
|
|
{
|
|
|
selfStat.MaxAmount -= amt * 3;
|
|
selfStat.MaxAmount -= amt * 3;
|
|
|
}
|
|
}
|
|
|
|
|
+ function.WriteLog(UserId + ":" + selfStat.MaxAmount, "助利宝交易核对");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|