xiongzhu пре 5 година
родитељ
комит
50b4b97af4
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      src/main/java/com/izouma/jiashanxia/web/WithdrawController.java

+ 4 - 3
src/main/java/com/izouma/jiashanxia/web/WithdrawController.java

@@ -70,9 +70,10 @@ public class WithdrawController extends BaseController {
 
     @PostMapping("/apply")
     @ApiOperation("提现申请")
-    public Withdraw apply(BigDecimal amount, PayMethod payMethod, String realName, String account) {
-        return withdrawService.apply(SecurityUtils.getAuthenticatedUser()
-                .getId(),  amount, payMethod, realName, account);
+    public Withdraw apply(@RequestParam BigDecimal amount, @RequestParam PayMethod payMethod,
+                          @RequestParam String realName, @RequestParam String account) {
+        return withdrawService.apply(SecurityUtils.getAuthenticatedUser().getId(),
+                amount, payMethod, realName, account);
     }
 
     @PostMapping("/audit")