只填写国家和职业(不发送验证码)
This commit is contained in:
@@ -424,12 +424,21 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
||||
account.setOccupation(emailSendDTO.getOccupation());
|
||||
baseMapper.updateById(account);
|
||||
}
|
||||
|
||||
break;
|
||||
case CHANGE_MAILBOX:
|
||||
result = SendEmailUtil.send(emailSendDTO.getEmail(), null,
|
||||
SendEmailUtil.CHANGE_MAILBOX_TEMPLATE_ID, randomVerifyCode);
|
||||
break;
|
||||
case UPDATE_USERINFO:
|
||||
if (!StringUtil.isNullOrEmpty(emailSendDTO.getCountry()) || !StringUtil.isNullOrEmpty(emailSendDTO.getOccupation())){
|
||||
Long accountId = UserContext.getUserHolder().getId();
|
||||
Account account = baseMapper.selectById(accountId);
|
||||
account.setCountry(emailSendDTO.getCountry());
|
||||
account.setOccupation(emailSendDTO.getOccupation());
|
||||
baseMapper.updateById(account);
|
||||
result = true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
}
|
||||
if (!result) {
|
||||
|
||||
Reference in New Issue
Block a user