From 1abee88ad7564b17a61906686394584c9b337a57 Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Fri, 13 Mar 2026 09:52:36 +0800 Subject: [PATCH] =?utf8?q?=E5=85=BC=E5=AE=B9=E5=AF=B9=E8=AF=9D=E5=8F=AA?= =?utf8?q?=E5=8F=98=E5=8C=96=E8=A1=A8=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/zhihui/leiniao/imsl_ln/ln_api_story_random.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/sdk/zhihui/leiniao/imsl_ln/ln_api_story_random.c b/code/sdk/zhihui/leiniao/imsl_ln/ln_api_story_random.c index 8484f494f..adda1916a 100644 --- a/code/sdk/zhihui/leiniao/imsl_ln/ln_api_story_random.c +++ b/code/sdk/zhihui/leiniao/imsl_ln/ln_api_story_random.c @@ -266,11 +266,16 @@ void ln_parse_voice_chat_response(const char *json_str, int json_len) } } + /* 兼容:无 textContent 或为空但有 npcEmotion 时,只切换表情,不推送/入队文本,保留上一次的 textContent;其他正常执行 */ if (text_str && text_str[0]) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "用户文本内容: %s\n", text_str); push_text_to_ui(text_str); } + else if (npc_emotion_str) + { + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "VoiceChatResponse: no textContent, emotion-only update, keep previous text\n"); + } else { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "textContent is null\n"); -- 2.17.1