From 13ba9efe63fd2eb2b8372a229395dcb7819932ca Mon Sep 17 00:00:00 2001 From: dzq Date: Wed, 26 Nov 2025 17:15:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E7=94=A8=E6=88=B7=E5=8F=82=E6=95=B0=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=8F=8A=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BD=99=E9=A2=9D?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正绑定微信小程序用户时的参数校验逻辑,增加corpid参数检查 调整用户绑定成功后初始化余额从1000改为100000 修复绑定成功返回值逻辑错误 --- .../agileboot/admin/controller/ab98/Ab98UserController.java | 3 ++- .../agileboot/domain/wx/user/WxUserApplicationService.java | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agileboot-admin/src/main/java/com/agileboot/admin/controller/ab98/Ab98UserController.java b/agileboot-admin/src/main/java/com/agileboot/admin/controller/ab98/Ab98UserController.java index 1dfacc1..aba26a9 100644 --- a/agileboot-admin/src/main/java/com/agileboot/admin/controller/ab98/Ab98UserController.java +++ b/agileboot-admin/src/main/java/com/agileboot/admin/controller/ab98/Ab98UserController.java @@ -103,7 +103,8 @@ public class Ab98UserController extends BaseController { @AccessLog(title = "ab98用户管理", businessType = BusinessTypeEnum.MODIFY) @PostMapping("/bindWxMpUser") public ResponseDTO bindWxMpUser(@RequestBody BindWxMpUserCommand command) { - if (command == null || StringUtils.isBlank(command.getDynamicCode()) || StringUtils.isBlank(command.getName()) || StringUtils.isBlank(command.getIdNum())) { + if (command == null || StringUtils.isBlank(command.getDynamicCode()) || StringUtils.isBlank(command.getName()) + || StringUtils.isBlank(command.getIdNum()) || StringUtils.isBlank(command.getCorpid())) { log.error("绑定微信小程序用户到汇邦云参数错误: {}", JSONUtil.toJsonStr(command)); return ResponseDTO.fail(new ApiException(ErrorCode.Client.COMMON_REQUEST_PARAMETERS_INVALID, "参数错误")); } diff --git a/agileboot-domain/src/main/java/com/agileboot/domain/wx/user/WxUserApplicationService.java b/agileboot-domain/src/main/java/com/agileboot/domain/wx/user/WxUserApplicationService.java index 211708a..a865a65 100644 --- a/agileboot-domain/src/main/java/com/agileboot/domain/wx/user/WxUserApplicationService.java +++ b/agileboot-domain/src/main/java/com/agileboot/domain/wx/user/WxUserApplicationService.java @@ -360,11 +360,10 @@ public class WxUserApplicationService { if (wxUserEntity != null) { wxUserEntity.setAb98UserId(ab98UserEntity.getAb98UserId()); userService.updateById(wxUserEntity); - return true; } - ab98UserApplicationService.createAb98UserBalance(ab98UserEntity.getAb98UserId(), command.getCorpid(), 1000L); + ab98UserApplicationService.createAb98UserBalance(ab98UserEntity.getAb98UserId(), command.getCorpid(), 100000L); - return false; + return true; } }