|
@@ -191,7 +191,7 @@ namespace MySystem
|
|
|
int maxLevel = obj.MaxLevel; //最大等级
|
|
|
int maxFloor = obj.MaxFloor; //最大层级
|
|
|
decimal diffLevelProfit = 0; //等级级差
|
|
|
- ProfitObjectLevels maxlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == 9) ?? new ProfitObjectLevels(); //获取最高等级参数
|
|
|
+ ProfitObjectLevels maxlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.LevelNumber == 9) ?? new ProfitObjectLevels(); //获取最高等级参数
|
|
|
decimal maxPercent = IsActive ? maxlevel.DebitPercents : maxlevel.Percents;
|
|
|
LogHelper.Instance.WriteLog("maxPercent:" + maxPercent + ";", "来客吧分润日志");
|
|
|
decimal maxLevelProfit = TotalAmount * maxPercent;
|
|
@@ -237,7 +237,7 @@ namespace MySystem
|
|
|
}
|
|
|
if (UserLevel <= maxLevel && UserLevel >= curLevel)
|
|
|
{
|
|
|
- ProfitObjectLevels objlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == UserLevel && m.Version == 0); //获取当前等级参数
|
|
|
+ ProfitObjectLevels objlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.LevelNumber == UserLevel && m.Version == 0); //获取当前等级参数
|
|
|
if (objlevel != null)
|
|
|
{
|
|
|
decimal getLevelProfit = 0; //等级分润
|