From 16cad52b89f9b6d4e642e20cee708f994b59b29b Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Thu, 26 Sep 2024 22:16:58 +0800 Subject: [PATCH] =?utf8?q?=E5=8E=BB=E9=99=A4AI=E8=AF=AD=E9=9F=B3=E4=BA=AE5?= =?utf8?q?s=E5=B1=8F=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B7=B2=E6=9C=8960s?= =?utf8?q?=E4=BA=AE=E5=B1=8F=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/aivoice/src/AiVoiceModel.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 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 1492bac73..724d37dd5 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-09-26 17:54:07 + * @LastEditTime: 2024-09-26 22:12:14 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp */ #include "aivoice/include/AiVoiceModel.h" @@ -373,10 +373,6 @@ namespace OHOS WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::UpdateUserQuestionStr"); RemoveLastTwoItemsOrClear(); - /* -------------------------------------------------------------------------- */ - ScreenTurnOn(5 * 1000); // 有消息来就亮屏5秒 - /* -------------------------------------------------------------------------- */ - if (!AddUserQuestionToChatItems()) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AddUserQuestionToChatItems fail!!"); @@ -412,10 +408,6 @@ namespace OHOS { WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::UpdateAiAnswerStr"); - /* -------------------------------------------------------------------------- */ - ScreenTurnOn(5 * 1000); // 有消息来就亮屏5秒 - /* -------------------------------------------------------------------------- */ - int index = GetChatContentListCount() - 1; if (index < 0 || index >= MaxChatContentListCount) { @@ -526,7 +518,6 @@ namespace OHOS if (AIResponseType == AiVoiceModel::AI_RECORDING_PARSING_ERROR || AIResponseType == AiVoiceModel::AI_RESPONSE_ERROR) { SendMsgToUIService(UI_AI_JUMP_TO_RESPONDERR_VIEW, 0, (void *)errnote.c_str(), errnote.length()); - ScreenTurnOn(5 * 1000); // 有消息来就亮屏5秒 return; } aiAnswerStr += str; @@ -707,7 +698,6 @@ namespace OHOS AiVoiceModel::GetInstance().SetErrnote("The connection timed out. Please restart the conversation"); std::string str = AiVoiceModel::GetInstance().GetErrnote(); SendMsgToUIService(UI_AI_JUMP_TO_RESPONDERR_VIEW, 0, (void *)str.c_str(), str.length()); - ScreenTurnOn(5 * 1000); // 有消息来就亮屏5秒 } } return; -- 2.17.1