fix: 微信小程序登录,传手机号,修改手机号接口修改完善。

This commit is contained in:
tianyongbao
2026-04-03 23:37:25 +08:00
parent f252b94832
commit b70e81266e
4 changed files with 13 additions and 0 deletions

View File

@@ -452,6 +452,12 @@ public class AquUserController extends BaseController {
boolean success = aquUserService.updateByBo(updateBo);
if (success) {
// 同步更新 SysUser 中的 phonenumber
SysUserBo sysUserBo = new SysUserBo();
sysUserBo.setUserId(userId);
sysUserBo.setPhonenumber(request.getNewMobilePhone());
sysUserService.updateUserProfile(sysUserBo);
// 删除已使用的验证码
RedisUtils.deleteObject(codeKey);
// 也删除旧手机号的验证码(如果存在)