|
@@ -201,6 +201,17 @@ public class ContentPlatformAccountServiceImpl implements ContentPlatformAccount
|
|
|
} else {
|
|
|
account.setId(param.getId());
|
|
|
accountMapper.updateByPrimaryKeySelective(account);
|
|
|
+ reSetToken(param.getId());
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ private void reSetToken(Long id) {
|
|
|
+ ContentPlatformAccount account = accountMapper.selectByPrimaryKey(id);
|
|
|
+ if (Objects.isNull(account) || !StringUtils.hasText(account.getToken())) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ AccountLoginVO loginVO = new AccountLoginVO();
|
|
|
+ BeanUtils.copyProperties(account, loginVO);
|
|
|
+ saveTokenToRedis(loginVO, account.getToken(), account.getToken());
|
|
|
+ }
|
|
|
}
|