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