1
dd
2025-11-12 618f535897f36718829a0f36689ee78e8ce0032f
ruoyi-admin/src/main/java/com/ruoyi/web/controller/product/UserKycController.java
@@ -54,6 +54,16 @@
            if(ObjectUtil.isEmpty(userAccount)){
                return Result.error("请重新登录,未查询到你的信息!");
            }
            long count = userKycService.count(new LambdaQueryWrapper<>(UserKyc.class)
                    .eq(UserKyc::getIdCard, dto.getIdCard())
                    .eq(UserKyc::getState, 1)
            );
            if(count > 0){
                return Result.error("该身份证已实名认证!");
            }
            UserKyc userKyc = userKycService.getOne(new LambdaQueryWrapper<>(UserKyc.class)
                    .eq(UserKyc::getUserId, userAccount.getId())
            );
@@ -228,7 +238,10 @@
     */
    @GetMapping("/getAccountPassword")
    @Transactional
    public AjaxResult getAccountPassword(@RequestParam(value = "account") String account) {
    public AjaxResult getAccountPassword(@RequestParam(value = "account",required = false) String account) {
        if(ObjectUtil.isEmpty(account)){
            return AjaxResult.error("请输入查询账号!");
        }
        UserAccount userAccount = userAccountService.getOne(new LambdaQueryWrapper<>(UserAccount.class)
                .eq(UserAccount::getAccount, account)
        );