From: xue <2144439972@qq.com> Date: Fri, 27 Feb 2026 09:49:47 +0000 (+0800) Subject: 恢复故事心跳 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=0ad3021d1df3583721d060ce297de628338de83b;p=mirrors%2FFD230.git 恢复故事心跳 --- 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 a0cb8b0f9..5e67c7f85 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 @@ -3277,8 +3277,6 @@ extern "C" { } WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ThunderBirdModel::HandleStoryResponseFinished: 当前文本为'%s',确认为真正的finished", currentText.c_str()); } - //进入哄睡模式时,心跳间隔设置为30秒 - ln_ws_set_heartbeat_interval_sec(30); m_storyModeFinished = true; } } @@ -4040,8 +4038,8 @@ extern "C" { // 进入哄睡模式时记录当前表情(进入THUNDERBIRD_LULLABYVIEW_4时调用) void ThunderBirdModel::OnEnterLullabyMode() { - - // 记录进入哄睡模式前的时间线表情(用于退出时恢复) + //进入哄睡模式时,心跳间隔设置为30秒 + ln_ws_set_heartbeat_interval_sec(30); // 记录进入哄睡模式前的时间线表情(用于退出时恢复) m_lullabyExpression = "winking"; WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ThunderBirdModel::OnEnterLullabyMode: 记录时间线表情: %s", m_currentExpression.c_str()); // 设置标志位,表示在哄睡模式中