|
|
|
@ -132,6 +132,12 @@ public class MyController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
boolean isChangeNickName = false;
|
|
|
|
|
if(!Objects.equals(nickName, user.getNickName())) {
|
|
|
|
|
// 修改了昵称
|
|
|
|
|
isChangeNickName = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!StringTools.isEmpty(nickName)) {
|
|
|
|
|
user.setNickName(nickName);
|
|
|
|
|
rabbitTemplate.convertAndSend("userInfoCommentCache", userLoginDto.getUserId());
|
|
|
|
@ -152,6 +158,11 @@ public class MyController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
user.setModifyTime(new Date());
|
|
|
|
|
userInfoService.update(user);
|
|
|
|
|
|
|
|
|
|
if(isChangeNickName) {
|
|
|
|
|
// 修改了昵称
|
|
|
|
|
userPointLogService.addByTaskNew(TaskPointIdConstants.MODIFY_NICKNAME, user.getNickName());
|
|
|
|
|
}
|
|
|
|
|
return Result.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|