Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
0202zc committed Feb 24, 2023
1 parent 8658f4d commit d941d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/comment/service/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (s *CommentServiceImpl) CommentAction(ctx context.Context, req *comment.Com
}
// 若删除评论的用户不是发布评论的用户或该用户不是视频创作者
if userID != int64(cmt.UserID) || userID != int64(v.AuthorID) {
logger.Errorf("评论删除失败,没有权限:%v", err.Error())
logger.Errorf("评论删除失败,没有权限:%v", cmt.UserID)
res := &comment.CommentActionResponse{
StatusCode: -1,
StatusMsg: "评论删除失败:没有权限",
Expand Down

0 comments on commit d941d45

Please sign in to comment.