From: luozheng <1732036298@qq.com> Date: Mon, 4 Aug 2025 07:32:58 +0000 (+0800) Subject: 解决AI大模型标识错误显示到问题中 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=e0533d7fe1b1b90bdacc6d432b924fd5c1e34570;p=mirrors%2FFD230.git 解决AI大模型标识错误显示到问题中 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp index 0f248c3de..afec3424d 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp @@ -1636,7 +1636,10 @@ namespace OHOS if (get_bk_websocket_tts_tick() == 0) // 代表可以发录音文本 { if (AiVoiceModel::GetInstance().GetInit_4gai_task()) + { + LOS_Msleep(200); AiVoiceModel::GetInstance().ProcessTextByPunctuation(); + } } else { diff --git a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceChatContentListItemView.cpp b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceChatContentListItemView.cpp index 0ec9239dc..48c92bd58 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceChatContentListItemView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceChatContentListItemView.cpp @@ -108,6 +108,11 @@ namespace OHOS mindLabel.SetY(chatContentScrollView.GetY() + chatContentScrollView.GetHeight()- 40); mindLabel.SetVisible(true); } + else + { + chatContentScrollView.Resize(isAiAnswerFlag ? QUESTION_CHATCONTENTSCROLLVIEW_W : ANSWER_CHATCONTENTSCROLLVIEW_W, GetHeight() - 30); + mindLabel.SetVisible(false); + } } void AivoiceChatContentListItemView::SetUpChild()