|
@@ -79,7 +79,7 @@ public class ChannelWithdrawController extends BaseApiController {
|
|
|
/**
|
|
|
* 提现费率默认值
|
|
|
*/
|
|
|
- private final String FEE_RATE_DEFAULT_VALUE = "8";
|
|
|
+ private final String FEE_RATE_DEFAULT_VALUE = "0.8";
|
|
|
|
|
|
/**
|
|
|
* 渠道提现计算手续费
|
|
@@ -92,7 +92,7 @@ public class ChannelWithdrawController extends BaseApiController {
|
|
|
Long channelId = SecurityUtils.getLoginUser().getChannelId();
|
|
|
ChannelWithdraw channelWithdraw = new ChannelWithdraw();
|
|
|
channelWithdraw.setMoney(param.getMoney());
|
|
|
- BigDecimal feeAmt = new BigDecimal(param.getMoney()).multiply(feeRate).divide(new BigDecimal(1000), 2, RoundingMode.DOWN);
|
|
|
+ BigDecimal feeAmt = new BigDecimal(param.getMoney()).multiply(feeRate).divide(new BigDecimal(100), 2, RoundingMode.DOWN);
|
|
|
channelWithdraw.setChargeAmt(feeAmt.intValue());
|
|
|
channelWithdraw.setUserName(param.getUserName());
|
|
|
channelWithdraw.setCardNo(param.getCardNo());
|
|
@@ -103,6 +103,7 @@ public class ChannelWithdrawController extends BaseApiController {
|
|
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("chargeAmt", channelWithdraw.getChargeAmt());
|
|
|
+ jsonObject.put("chargeRate", feeRate);
|
|
|
return AjaxResult.success(jsonObject);
|
|
|
}
|
|
|
|