正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
@@ -113,7 +113,7 @@ func (l *MiniSetUserLikeLogic) cancelSetUserLikeArticle(req *types.MiniSetUserLi | @@ -113,7 +113,7 @@ func (l *MiniSetUserLikeLogic) cancelSetUserLikeArticle(req *types.MiniSetUserLi | ||
113 | return nil, xerr.NewErrMsgErr("取消点赞标识失败", err) | 113 | return nil, xerr.NewErrMsgErr("取消点赞标识失败", err) |
114 | } | 114 | } |
115 | articleInfo, err = l.svcCtx.ArticleRepository.FindOne(l.ctx, conn, req.ArticleId) | 115 | articleInfo, err = l.svcCtx.ArticleRepository.FindOne(l.ctx, conn, req.ArticleId) |
116 | - if err == nil { | 116 | + if err != nil { |
117 | return nil, xerr.NewErrMsgErr("获取点赞数量失败", err) | 117 | return nil, xerr.NewErrMsgErr("获取点赞数量失败", err) |
118 | } | 118 | } |
119 | resp = &types.MiniSetUserLikeResponse{ | 119 | resp = &types.MiniSetUserLikeResponse{ |
@@ -174,7 +174,7 @@ func (l *MiniListArticleCommentLogic) listCommentReply(commentId int64, loveFlag | @@ -174,7 +174,7 @@ func (l *MiniListArticleCommentLogic) listCommentReply(commentId int64, loveFlag | ||
174 | Position: val.ToUser.Position, | 174 | Position: val.ToUser.Position, |
175 | Company: val.ToUser.Company, | 175 | Company: val.ToUser.Company, |
176 | }, | 176 | }, |
177 | - SectionContent: val.SectionContent, | 177 | + SectionContent: "", //不设置值 |
178 | CountReply: val.CountReply, | 178 | CountReply: val.CountReply, |
179 | CountUserLove: val.CountUserLove, | 179 | CountUserLove: val.CountUserLove, |
180 | CountAdminLove: val.CountAdminLove, | 180 | CountAdminLove: val.CountAdminLove, |
-
请 注册 或 登录 后发表评论