From daadebce31eca8435fabe41297cbcb2c82588e97 Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Wed, 14 Jan 2026 11:50:00 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E5=93=84=E7=9D=A1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp | 3 ++- .../nativeui/thunderbird/src/ThunderBirdPresenter.cpp | 2 +- code/sdk/zhihui/leiniao/imsl_ln/ln_api_websocket.c | 1 + 3 files changed, 4 insertions(+), 2 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 bd6ba0dee..cfce431c6 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 @@ -2899,6 +2899,7 @@ extern "C" { } else//意图识别结果 { + ln_http_download_init(); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ThunderBirdModel::HandleSleepModeStart: 意图识别结果,跳转到2"); //看后续是否需要 ln_ws_end_audio_chat();//结束对话 @@ -3439,7 +3440,7 @@ extern "C" { } WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "录音结束,跳转到故事界面"); // 初始化HTTP下载服务(语音识别故事) - ln_http_download_init(); + // ln_http_download_init(); // 进入哄睡模式时切换为眨眼表情 OnEnterLullabyMode(); view->ChangeView(currentView, THUNDERBIRD_LULLABYVIEW, ThunderBirdLullabyView::THUNDERBIRD_LULLABYVIEW_4); 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 fa2350cbb..04407db5e 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 @@ -817,7 +817,7 @@ namespace OHOS break; case ThunderBirdLullabyView::THUNDERBIRD_LULLABYVIEW_3: { - ln_http_download_init(); + // ln_http_download_init(); // 进入哄睡模式时切换为眨眼表情 do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_AUDIO_INIT_VAD_DISABLE, NULL, 0); ThunderBirdModel::GetInstance()->OnEnterLullabyMode(); diff --git a/code/sdk/zhihui/leiniao/imsl_ln/ln_api_websocket.c b/code/sdk/zhihui/leiniao/imsl_ln/ln_api_websocket.c index f1cdff3e0..70b9b6fa5 100644 --- a/code/sdk/zhihui/leiniao/imsl_ln/ln_api_websocket.c +++ b/code/sdk/zhihui/leiniao/imsl_ln/ln_api_websocket.c @@ -1804,6 +1804,7 @@ int ln_ws_send_random_story_request(const char *story_theme) // 只有当HTTP下载服务正确初始化后才添加returnBytes字段 if (ln_http_download_is_initialized()) { + printf("ln_http_download_is_initialized() returnBytes: false\n"); cJSON_AddBoolToObject(data, "returnBytes", false); } -- 2.17.1