From 1b0fbe0c69251b276c4190fe4d115dce7c45541c Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Tue, 22 Oct 2024 19:14:47 +0800 Subject: [PATCH] =?utf8?q?AI=E8=AF=AD=E9=9F=B3=E7=95=8C=E9=9D=A2=E4=BF=AE?= =?utf8?q?=E6=94=B9=EF=BC=8C=E6=8F=90=E7=A4=BA=E5=B0=86=E8=8B=B1=E6=96=87?= =?utf8?q?=E6=94=B9=E4=B8=BA=E4=B8=AD=E6=96=87=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/aivoice/src/AiVoiceModel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 d9bd5e891..e16011c69 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-06-20 15:14:50 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-10-19 18:26:01 + * @LastEditTime: 2024-10-22 17:30:40 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp */ #include "aivoice/include/AiVoiceModel.h" @@ -474,7 +474,7 @@ namespace OHOS if (errnote.empty()) // 如果没有回应数据 { WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::GetErrnote is empty!!"); - AiVoiceModel::GetInstance().SetErrnote("response data is empty"); + AiVoiceModel::GetInstance().SetErrnote("响应内容为空"); std::string str = AiVoiceModel::GetInstance().GetErrnote(); SendMsgToUIService(UI_AI_JUMP_TO_RESPONDERR_VIEW, 0, (void *)str.c_str(), str.length()); return; @@ -619,7 +619,7 @@ namespace OHOS if (Time < 0) // 如果思考时间超时30s,进入连接超时界面 { AiVoiceModel::GetInstance().AIVoice_StopTimer(); - AiVoiceModel::GetInstance().SetErrnote("The connection timed out. Please restart the conversation"); + AiVoiceModel::GetInstance().SetErrnote("连接超时,请重新开始对话"); std::string str = AiVoiceModel::GetInstance().GetErrnote(); SendMsgToUIService(UI_AI_JUMP_TO_RESPONDERR_VIEW, 0, (void *)str.c_str(), str.length()); } @@ -630,7 +630,7 @@ namespace OHOS // 蓝牙的连接状态判断,如果AI思考过程中途断连,直接弹窗提示,不在硬等 if (get_ble_connect() == false) { - AiVoiceModel::GetInstance().SetErrnote("ble is disconnected"); + AiVoiceModel::GetInstance().SetErrnote("手机蓝牙已断开"); std::string str = AiVoiceModel::GetInstance().GetErrnote(); SendMsgToUIService(UI_AI_JUMP_TO_RESPONDERR_VIEW, 0, (void *)str.c_str(), str.length()); } -- 2.17.1