|
|
|
@ -359,6 +359,14 @@ public class CommentController extends BaseController {
|
|
|
|
|
// return Result.failed(StatusCode.COMMENT_REPEAT_THUMBUP);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Comment comment = commentService.findById(commentId);
|
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_COMMENT_PAGE_HOT+"_"+comment.getRootJournalId());
|
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_COMMENT_PAGE_NEW+"_"+comment.getRootJournalId());
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotEmpty(comment.getParentId())) {
|
|
|
|
|
cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_COMMENT_PAGE_CHILDREN+"_"+comment.getParentId());
|
|
|
|
|
}
|
|
|
|
|
// 判断当前用户是否已经点赞
|
|
|
|
|
Integer flag = likeService.likePublication(commentId,userId,2,avatar,nickName);
|
|
|
|
|
if (flag==0) {
|
|
|
|
|