|
@@ -95,6 +95,9 @@ public class ChannelWithdrawController extends BaseApiController {
|
|
|
if (channel.getMoney() < 50000) {
|
|
|
return AjaxResult.error("账户余额不足500元");
|
|
|
}
|
|
|
+ if (param.getMoney() > channel.getMoney() ) {
|
|
|
+ return AjaxResult.error("提现金额超出了余额");
|
|
|
+ }
|
|
|
int feeAmt = new BigDecimal(param.getMoney()).multiply(feeRate)
|
|
|
.divide(new BigDecimal(100), 0, RoundingMode.HALF_UP).intValue();
|
|
|
ChannelWithdraw channelWithdraw = new ChannelWithdraw();
|