|
|
@ -227,9 +227,6 @@ public class ResiTopicCommentServiceImpl extends BaseServiceImpl<ResiTopicCommen |
|
|
|
comment.setStatus(TopicConstant.PUBLISHMENT); |
|
|
|
comment.setCreatedBy(tokenDto.getUserId()); |
|
|
|
baseDao.insertOne(comment); |
|
|
|
|
|
|
|
//对所有关注这个话题的人发送微信订阅
|
|
|
|
resiTopicService.sendWxmpUpdateSubscribe(tokenDto,topic.getId(), WxmpSubscribeConstant.TYPE_COMMENT); |
|
|
|
// 话题评论前3次,加积分【对小组内话题进行15字以上评论】
|
|
|
|
Integer commentCount = baseDao.selectCommentCountByUserId(tokenDto.getUserId()); |
|
|
|
if (null != commentCount && commentCount <= NumConstant.THREE){ |
|
|
@ -261,6 +258,8 @@ public class ResiTopicCommentServiceImpl extends BaseServiceImpl<ResiTopicCommen |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//对所有关注这个话题的人发送微信订阅
|
|
|
|
resiTopicService.sendWxmpUpdateSubscribe(tokenDto,topic.getId(), WxmpSubscribeConstant.TYPE_COMMENT); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|