修复 赔率计算问题,不应该toInt

This commit is contained in:
筱傑 2022-04-13 17:07:23 +08:00 committed by GitHub
parent 2097495382
commit 49863d9708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,7 +201,6 @@ object JHorseRacing : KotlinPlugin(
// 否则根据下注金额与余额的比值计算赔率
(bet.score.toDouble() / 1000.0 * JHRPluginConfig.maxOdds)
.coerceIn(JHRPluginConfig.minOdds, JHRPluginConfig.maxOdds)
.toInt()
} else {
// 亏损积分
-bet.score