绑定邮箱时添加国家、职业信息

This commit is contained in:
2025-01-10 17:16:08 +08:00
parent 931a4cf807
commit ac2454fd0e
4 changed files with 14 additions and 7 deletions

View File

@@ -305,6 +305,8 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
}
//绑定
account.setUserEmail(accountBindEmailDTO.getUserEmail());
account.setCountry(accountBindEmailDTO.getCountry());
account.setOccupation(accountBindEmailDTO.getOccupation());
accountMapper.updateById(account);
// updatePwdByUserId(accountBindEmailDTO.getUserEmail(), accountBindEmailDTO.getUserId());
return Boolean.TRUE;
@@ -2586,12 +2588,10 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
}
@Override
public Boolean bindEmail(String email, String country, String occupation) {
public Boolean bindEmail(String email) {
AuthPrincipalVo userHolder = UserContext.getUserHolder();
Account account = accountMapper.selectById(userHolder.getId());
account.setUserEmail(email);
account.setCountry(country);
account.setOccupation(occupation);
accountMapper.updateById(account);
return Boolean.TRUE;
}