From cf50164cddf38e9210160a10d0109fb230969ab0 Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Mon, 29 Jul 2024 16:47:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=A4=B1=E8=B4=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../accountrecharge/AccountRechargeResourceController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/cn/com/tenlion/operator/controller/resource/accountrecharge/AccountRechargeResourceController.java b/src/main/java/cn/com/tenlion/operator/controller/resource/accountrecharge/AccountRechargeResourceController.java index abfe96d..c343554 100644 --- a/src/main/java/cn/com/tenlion/operator/controller/resource/accountrecharge/AccountRechargeResourceController.java +++ b/src/main/java/cn/com/tenlion/operator/controller/resource/accountrecharge/AccountRechargeResourceController.java @@ -72,9 +72,6 @@ public class AccountRechargeResourceController extends DefaultBaseController { @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("recharge-result/{accountRechargeId}") public synchronized AccountRechargePayResultDTO getRecharge(@PathVariable("accountRechargeId") String accountRechargeId, @RequestBody AccountRechargeVO accountRechargeVO) { - if (StringUtils.isBlank(accountRechargeVO.getUserId())) { - throw new ParamsException("用户ID不能为空"); - } return accountRechargeService.queryOnlineSuccess(accountRechargeId, accountRechargeVO); } @@ -83,6 +80,9 @@ public class AccountRechargeResourceController extends DefaultBaseController { @PostMapping("save-account") @CheckRequestBodyAnnotation public AccountRechargePayDTO saveAccount(@RequestBody AccountRechargeVO accountRechargeVO) { + if (StringUtils.isBlank(accountRechargeVO.getUserId())) { + throw new ParamsException("用户ID不能为空"); + } return accountRechargeService.saveAccount(accountRechargeVO.getThirdParty(), accountRechargeVO); }