From 3ed120106ed1575de7d11e8cd85d4d0dab530c4f Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Wed, 4 Feb 2026 18:29:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E4=BA=8C=E7=BA=A7=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E5=9B=9E=E5=A4=8D=E7=94=A8=E6=88=B7=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- keyBoard/Class/AiTalk/M/KBAIReplyModel.m | 6 +++--- keyBoard/Class/AiTalk/M/KBCommentModel.h | 4 ++++ keyBoard/Class/AiTalk/V/Comment/KBAIReplyCell.m | 6 +++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/keyBoard/Class/AiTalk/M/KBAIReplyModel.m b/keyBoard/Class/AiTalk/M/KBAIReplyModel.m index bb844c4..3a55398 100644 --- a/keyBoard/Class/AiTalk/M/KBAIReplyModel.m +++ b/keyBoard/Class/AiTalk/M/KBAIReplyModel.m @@ -55,9 +55,9 @@ if (!_content) { _content = @""; } - if ([_content isEqualToString:@"78910"]) { - NSLog(@"==="); - } +// if ([_content isEqualToString:@"78910"]) { +// NSLog(@"==="); +// } if (!_replyToUserName) { _replyToUserName = @""; } diff --git a/keyBoard/Class/AiTalk/M/KBCommentModel.h b/keyBoard/Class/AiTalk/M/KBCommentModel.h index a87132d..97168f1 100644 --- a/keyBoard/Class/AiTalk/M/KBCommentModel.h +++ b/keyBoard/Class/AiTalk/M/KBCommentModel.h @@ -33,6 +33,10 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, strong, nullable) NSArray *replies; /// 回复数量 @property (nonatomic, assign) NSInteger replyCount; +/// 被回复的用户 ID(仅二级回复场景可能存在) +@property (nonatomic, strong, nullable) NSNumber *replyToUserId; +/// 被回复的用户名(@xxx,仅二级回复场景可能存在) +@property (nonatomic, copy, nullable) NSString *replyToUserName; /// 用户头像 @property (nonatomic, copy, nullable) NSString *userAvatar; /// 用户 ID diff --git a/keyBoard/Class/AiTalk/V/Comment/KBAIReplyCell.m b/keyBoard/Class/AiTalk/V/Comment/KBAIReplyCell.m index 3ffe6d2..471ed27 100644 --- a/keyBoard/Class/AiTalk/V/Comment/KBAIReplyCell.m +++ b/keyBoard/Class/AiTalk/V/Comment/KBAIReplyCell.m @@ -98,7 +98,7 @@ NSDictionary *nameAttrs = @{ NSFontAttributeName : [UIFont systemFontOfSize:13 weight:UIFontWeightMedium], - NSForegroundColorAttributeName : [UIColor secondaryLabelColor] + NSForegroundColorAttributeName : [UIColor whiteColor] }; [attrName appendAttributedString:[[NSAttributedString alloc] initWithString:reply.userName @@ -106,7 +106,7 @@ NSDictionary *replyAttrs = @{ NSFontAttributeName : [UIFont systemFontOfSize:13], - NSForegroundColorAttributeName : [UIColor secondaryLabelColor] + NSForegroundColorAttributeName : [UIColor whiteColor] }; [attrName appendAttributedString:[[NSAttributedString alloc] initWithString:@" 回复 " @@ -114,7 +114,7 @@ NSDictionary *toUserAttrs = @{ NSFontAttributeName : [UIFont systemFontOfSize:13], - NSForegroundColorAttributeName : [UIColor systemBlueColor] + NSForegroundColorAttributeName : [UIColor whiteColor] }; [attrName appendAttributedString:[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"@%@", reply.replyToUserName]