|
|
@ -349,6 +349,8 @@ public class CommentController extends BaseController {
|
|
|
|
comment.setLocation(IpUtil.getIpLocation(getIpAddr(request)));
|
|
|
|
comment.setLocation(IpUtil.getIpLocation(getIpAddr(request)));
|
|
|
|
Comment commentResp = commentService.save(comment,userLoginDto);
|
|
|
|
Comment commentResp = commentService.save(comment,userLoginDto);
|
|
|
|
UserInfo commentUserInfo = userInfoService.findById(comment.getUserId());
|
|
|
|
UserInfo commentUserInfo = userInfoService.findById(comment.getUserId());
|
|
|
|
|
|
|
|
commentResp.setNickName(commentUserInfo.getNickName());
|
|
|
|
|
|
|
|
commentResp.setAvatar(Constants.RESOURCE_PREFIX+commentUserInfo.getAvatar());
|
|
|
|
if (StringUtils.isNotEmpty(commentUserInfo.getBadges())){
|
|
|
|
if (StringUtils.isNotEmpty(commentUserInfo.getBadges())){
|
|
|
|
Set<Integer> badgeSet = new HashSet<>();
|
|
|
|
Set<Integer> badgeSet = new HashSet<>();
|
|
|
|
Arrays.stream(commentUserInfo.getBadges().split(",")).forEach(b->{
|
|
|
|
Arrays.stream(commentUserInfo.getBadges().split(",")).forEach(b->{
|
|
|
|