diff --git a/keyBoard/Class/AiTalk/V/Chat/KBPersonaChatCell.m b/keyBoard/Class/AiTalk/V/Chat/KBPersonaChatCell.m index da54809..410e762 100644 --- a/keyBoard/Class/AiTalk/V/Chat/KBPersonaChatCell.m +++ b/keyBoard/Class/AiTalk/V/Chat/KBPersonaChatCell.m @@ -703,6 +703,9 @@ static NSString * const KBChatSessionDidResetNotification = @"KBChatSessionDidRe KBAICommentView *customView = [[KBAICommentView alloc] initWithFrame:CGRectMake(0, 0, KB_SCREEN_WIDTH, customViewHeight)]; + NSString *commentCount = self.persona.commentCount; + NSInteger totalCommentCount = [commentCount integerValue];; + customView.totalCommentCount = totalCommentCount; // 设置评论视图的人设 ID customView.companionId = self.persona.personaId; diff --git a/keyBoard/Class/AiTalk/V/Comment/KBAICommentView.h b/keyBoard/Class/AiTalk/V/Comment/KBAICommentView.h index 6522ba1..73d9f2a 100644 --- a/keyBoard/Class/AiTalk/V/Comment/KBAICommentView.h +++ b/keyBoard/Class/AiTalk/V/Comment/KBAICommentView.h @@ -20,7 +20,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)loadComments; /// 评论总数 -@property(nonatomic, readonly) NSInteger totalCommentCount; +@property(nonatomic, assign) NSInteger totalCommentCount; @property(nonatomic, weak) LSTPopView *popView ; diff --git a/keyBoard/Class/AiTalk/V/Comment/KBAICommentView.m b/keyBoard/Class/AiTalk/V/Comment/KBAICommentView.m index c918446..589a864 100644 --- a/keyBoard/Class/AiTalk/V/Comment/KBAICommentView.m +++ b/keyBoard/Class/AiTalk/V/Comment/KBAICommentView.m @@ -32,7 +32,6 @@ static NSString *const kCommentFooterIdentifier = @"CommentFooter"; @property(nonatomic, strong) KBAICommentInputView *inputView; @property(nonatomic, strong) NSMutableArray *comments; -@property(nonatomic, assign) NSInteger totalCommentCount; /// 分页参数 @property(nonatomic, assign) NSInteger currentPage; @@ -274,7 +273,7 @@ static NSString *const kCommentFooterIdentifier = @"CommentFooter"; return; } - self.totalCommentCount = pageModel.total; +// self.totalCommentCount = pageModel.total; if (!append) { [self.comments removeAllObjects];