|
@@ -1,4 +1,4 @@
|
|
|
-package com.miaxis.app.controller.wx;
|
|
|
+package com.miaxis.gzh.controller;
|
|
|
|
|
|
import com.miaxis.common.constant.Constants;
|
|
|
import com.miaxis.common.core.controller.BaseController;
|
|
@@ -68,7 +68,7 @@ public class WxExtractController extends BaseController {
|
|
|
}
|
|
|
|
|
|
if (amount < 30 ){
|
|
|
- throw new CustomException("提现金额不能低于0.3元");
|
|
|
+ throw new CustomException("提现金额不能低于1元");
|
|
|
}
|
|
|
wxOrderService.wxwithdrawal(amount);
|
|
|
return Response.success();
|
|
@@ -83,8 +83,16 @@ public class WxExtractController extends BaseController {
|
|
|
@PostMapping(value = "/wxwithbankdrawal")
|
|
|
@ApiOperation("银行卡提现")
|
|
|
public Response wxwithbankdrawal(@RequestBody WxExtractBankDTO dto) throws Exception{
|
|
|
+ if (dto.getAmount() == null){
|
|
|
+ throw new CustomException("提现金额不能为空");
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
|
|
|
+ if (dto.getAmount() <= 0 ){
|
|
|
+ throw new CustomException("提现金额必须大于0");
|
|
|
+ }
|
|
|
+
|
|
|
return Response.success(wxOrderService.wxwithbankdrawal(dto));
|
|
|
|
|
|
|