From 378ab2a8d5c5731d3f64bf83e6bb32f6a70cda91 Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Thu, 11 Dec 2025 14:44:37 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E5=A4=87=E5=AF=B9?= =?utf8?q?=E8=AF=9D=E6=B2=A1=E5=A3=B0=E9=9F=B3=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp | 5 +++-- .../nativeui/thunderbird/src/ThunderBirdPresenter.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp index 0bb652706..9fef60781 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp @@ -112,7 +112,7 @@ extern "C" { m_reminderHideActive(false), m_reminderHideTime(0), m_otaCountdownActive(false), m_otaCountdownValue(0), m_countUpActive(false), m_countUpValue(0), m_countUpTarget(0), - m_currentFps(60), // 默认60FPS + m_currentFps(60), m_simStatus(0), m_cat1PowerStatus(0), m_signalStrength(0), m_networkStatus(0), m_networkType(0), m_hasNetwork(false), m_networkStatusChanged(false), @@ -2465,7 +2465,7 @@ extern "C" { } - + // 切换角色 bool ThunderBirdModel::SwitchExpression(const char* eyeShape, const char* eyeColor) { // 参数验证 @@ -2516,6 +2516,7 @@ extern "C" { return true; // 异步调用,返回 true 表示调用已提交 } + // 切换表情 bool ThunderBirdModel::SwitchExpressionVideo(const char* videoPath) { // 参数验证 diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp index 6b04eb978..5480c1389 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp @@ -1201,7 +1201,8 @@ namespace OHOS do_ln_http_server_send_data(LN_HTTP_SERVICE_CMD_GET_CHAT_STAMINA, NULL, 0); // do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_AUDIO_INIT, NULL, 0); // 音频已在按键按下时初始化,这里直接开始对话 - //ln_ws_start_audio_chat(LN_AUDIO_CHAT_VOICE_CHAT_REQUEST);//开始对话 + // 初始化音频聊天上下文,确保可以接收服务器消息 + ln_ws_start_audio_chat(LN_AUDIO_CHAT_VOICE_CHAT_REQUEST);//开始对话 } -- 2.17.1