绑定邮箱时添加国家、职业信息
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user