Forráskód Böngészése

助利宝1%增益随机增加

lichunlei 3 éve
szülő
commit
c66537f65d
1 módosított fájl, 2 hozzáadás és 1 törlés
  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]));
                                 }