Explorar o código

助利宝1%增益随机增加

lichunlei %!s(int64=3) %!d(string=hai) anos
pai
achega
c66537f65d
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      AppStart/Helper/StatHelpProfitService.cs

+ 2 - 1
AppStart/Helper/StatHelpProfitService.cs

@@ -83,7 +83,8 @@ namespace MySystem
                                     db.SaveChanges();
                                 }
                                 decimal MoreAmount = TradeAmount * 0.01M;
-                                if(MoreAmount > 1)
+                                int random = function.get_Random(0, 10000);
+                                if(MoreAmount > 1 && random < 5000)
                                 {
                                     MoreAmount = decimal.Parse(function.CheckInt(MoreAmount.ToString().Split(".")[0]));
                                 }