소스 검색

助利宝1%增益随机增加

lichunlei 3 년 전
부모
커밋
c66537f65d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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]));
                                 }