|
|
|
@ -278,6 +278,7 @@ public class CommentController extends BaseController {
|
|
|
|
|
if (null != commentUserInfo) {
|
|
|
|
|
commentResp.setNickName(commentUserInfo.getNickName());
|
|
|
|
|
commentResp.setAvatar(getAvatar(commentUserInfo));
|
|
|
|
|
commentResp.setIsBetaUser(commentUserInfo.getIsBetaUser());
|
|
|
|
|
if (StringUtils.isNotEmpty(commentUserInfo.getBadges())){
|
|
|
|
|
Set<Integer> badgeSet = new HashSet<>();
|
|
|
|
|
Arrays.stream(commentUserInfo.getBadges().split(",")).forEach(b->{
|
|
|
|
@ -357,6 +358,7 @@ public class CommentController extends BaseController {
|
|
|
|
|
UserInfo commentUserInfo = userInfoService.findById(comment.getUserId());
|
|
|
|
|
commentResp.setNickName(commentUserInfo.getNickName());
|
|
|
|
|
commentResp.setAvatar(Constants.RESOURCE_PREFIX+commentUserInfo.getAvatar());
|
|
|
|
|
commentResp.setIsBetaUser(commentUserInfo.getIsBetaUser());
|
|
|
|
|
if (StringUtils.isNotEmpty(commentUserInfo.getBadges())){
|
|
|
|
|
Set<Integer> badgeSet = new HashSet<>();
|
|
|
|
|
Arrays.stream(commentUserInfo.getBadges().split(",")).forEach(b->{
|
|
|
|
|