lcl 4 месяцев назад
Родитель
Сommit
8fb19dbde6
1 измененных файлов с 4 добавлено и 5 удалено
  1. 4 5
      AppStart/Helper/StatHelpProfitService.cs

+ 4 - 5
AppStart/Helper/StatHelpProfitService.cs

@@ -688,11 +688,6 @@ namespace MySystem
                             decimal amt = rootStat.MaxAmount / 9;
                             decimal min = amt * 0.08M;
                             decimal max = amt * 1.02M;
-                            // if(specialUserIds().Contains(UserId))
-                            // {
-                            //     min = min * 3;
-                            //     max = max * 3;
-                            // }
                             amt = function.get_Random((int)min, (int)max);
                             HelpProfitAmountSummary selfStat = db.HelpProfitAmountSummary.FirstOrDefault(m => m.UserId == UserId && m.TradeMonth == TradeMonth);
                             if(selfStat == null)
@@ -712,6 +707,10 @@ namespace MySystem
                             else
                             {
                                 selfStat.MaxAmount = rootStat.MaxAmount - amt * (int.Parse(TradeMonth.Substring(4,2)) - 1);
+                                if(specialUserIds().Contains(UserId))
+                                {
+                                    selfStat.MaxAmount -= amt * 3;
+                                }
                             }
                         }
                     }