提交 d197e145 authored 作者: Whispa's avatar Whispa

commit commit

上级 4bcc6cca
......@@ -45,7 +45,7 @@ public class WithdrawController {
message = "Service Error";
}
if( byId.isPresent() && byId.get().getWallet() < withdraw.getAmount().doubleValue() ){
if( byId.isPresent() && byId.get().ogWallet() < withdraw.getAmount().doubleValue() ){
code = 0;
message = "Insufficient balance";
}
......
......@@ -291,9 +291,12 @@ public class TbCfUserInfo {
@JsonProperty
public BigDecimal getWallet() {
return BigDecimal.valueOf(bonus + withdraw).setScale(3, RoundingMode.HALF_UP);
return BigDecimal.valueOf(ogWallet()).setScale(3, RoundingMode.HALF_UP);
}
public double ogWallet(){
return bonus + withdraw;
}
/**
* 设置:用户编号
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论