chunping %!s(int64=3) %!d(string=hai) anos
pai
achega
818ab9feeb

+ 3 - 0
mp-admin/src/main/java/com/qs/mp/web/controller/api/channel/ChannelWithdrawController.java

@@ -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();