处理评论数
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
;
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ static NSString *const kCommentFooterIdentifier = @"CommentFooter";
|
||||
@property(nonatomic, strong) KBAICommentInputView *inputView;
|
||||
|
||||
@property(nonatomic, strong) NSMutableArray<KBAICommentModel *> *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];
|
||||
|
||||
Reference in New Issue
Block a user