From: xue <2144439972@qq.com> Date: Fri, 13 Mar 2026 01:52:36 +0000 (+0800) Subject: 兼容对话只变化表情 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F3269%2F1;p=mirrors%2FFD230.git 兼容对话只变化表情 --- 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");