单词错误
This commit is contained in:
@@ -288,9 +288,9 @@ public class DiscSpinningController {
|
|||||||
double baseAmount = 0;
|
double baseAmount = 0;
|
||||||
for (DiscSpinningAmount amount : amounts) {
|
for (DiscSpinningAmount amount : amounts) {
|
||||||
if (baseRandom < amount.getRandom()) {
|
if (baseRandom < amount.getRandom()) {
|
||||||
resultAmount = baseAmount + random.nextDouble() * (amount.getMaxAmont() - baseAmount);
|
resultAmount = baseAmount + random.nextDouble() * (amount.getMaxAmount() - baseAmount);
|
||||||
}
|
}
|
||||||
baseAmount = amount.getMaxAmont();
|
baseAmount = amount.getMaxAmount();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resultAmount == 0) {
|
if (resultAmount == 0) {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public class DiscSpinningAmount extends Model<DiscSpinningAmount> {
|
|||||||
@ApiModelProperty("0-1 小于 多少为该奖励")
|
@ApiModelProperty("0-1 小于 多少为该奖励")
|
||||||
private Double random;
|
private Double random;
|
||||||
@ApiModelProperty("最大金额")
|
@ApiModelProperty("最大金额")
|
||||||
private Double maxAmont;
|
private Double maxAmount;
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user