无关风月
2024-11-11 6c19eb74b11c6cbf475d43496b90cdee2a28d8b7
xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/client/ClientAppUserController.java
@@ -1033,7 +1033,12 @@
            throw new ServiceException("验证码不正确");
        }
        AppUser byId = appUserService.getById(userId);
        AppUser one = appUserService.lambdaQuery().eq(AppUser::getCellPhone, phone)
                .ne(AppUser::getId, userId)
                .ne(AppUser::getUserStatus, 3).one();
        if (one!=null){
            return R.fail("当前手机号已被绑定");
        }
        byId.setCellPhone(phone);
        boolean b = appUserService.updateById(byId);
        return R.ok();