处理滚动底部问题
This commit is contained in:
@@ -424,12 +424,12 @@ static NSString *const kCommentFooterIdentifier = @"CommentFooter";
|
||||
// 更新模型状态
|
||||
if (isNowLiked) {
|
||||
// 点赞成功:喜欢数+1
|
||||
reply.isLiked = YES;
|
||||
reply.liked = YES;
|
||||
reply.likeCount = MAX(0, reply.likeCount + 1);
|
||||
NSLog(@"[KBAICommentView] 二级评论点赞成功,ID: %ld", (long)commentId);
|
||||
} else {
|
||||
// 取消点赞成功:喜欢数-1
|
||||
reply.isLiked = NO;
|
||||
reply.liked = NO;
|
||||
reply.likeCount = MAX(0, reply.likeCount - 1);
|
||||
NSLog(@"[KBAICommentView] 二级评论取消点赞成功,ID: %ld", (long)commentId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user