Althars123 3 年之前
父节点
当前提交
14fc3303f7
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      twzd-admin/src/main/java/com/miaxis/app/controller/wx/WxExtractController.java

+ 6 - 2
twzd-admin/src/main/java/com/miaxis/app/controller/wx/WxExtractController.java

@@ -65,8 +65,12 @@ public class WxExtractController extends BaseController{
             throw new CustomException("提现金额不能为空");
 
         }
-        if (amount > 200 && amount <0){
-            throw new CustomException("提现金额必须在200以内");
+        if (amount > 20000 ){
+            throw new CustomException("提现金额不能超过200元");
+        }
+
+        if (amount < 30 ){
+            throw new CustomException("提现金额不能低于0.3元");
         }
         wxOrderService.wxwithdrawal(amount);
         return Response.success();