From: luozheng <1732036298@qq.com> Date: Mon, 27 Oct 2025 09:44:01 +0000 (+0800) Subject: 哄睡模式开始的意图识别由用户确认再开始 X-Git-Tag: V1.0.9_20251128_194606_LN~164 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=48334ee59673e635ddbfff6cd64055f02a6766cf;p=mirrors%2FFD230.git 哄睡模式开始的意图识别由用户确认再开始 --- diff --git a/code/sdk/zhihui/leiniao/imsl_ln/ln_api.c b/code/sdk/zhihui/leiniao/imsl_ln/ln_api.c index b10d92c59..07af5d38b 100644 --- a/code/sdk/zhihui/leiniao/imsl_ln/ln_api.c +++ b/code/sdk/zhihui/leiniao/imsl_ln/ln_api.c @@ -630,7 +630,7 @@ int uapi_ln_download_file_resume(const char *url, const char *save_path) return ERRCODE_FAIL; } - HTTPC_RESULT prep = ln_http_prepare_auto(&client_data, 2048, LN_CLIENT_PREPARE_SIZE * 2); + HTTPC_RESULT prep = ln_http_prepare_auto(&client_data, 2048, LN_CLIENT_PREPARE_SIZE * 4); if (prep != HTTP_SUCCESS) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[DOWNLOAD_RESUME] prepare failed: %d", prep); @@ -1547,6 +1547,7 @@ static void ln_http_server_send_task(void const *arg) // ln_story_random_req_t req; // memcpy(&req, mail.data, sizeof(req)); // ln_story_random_http(uapi_ln_get_device_id(), uapi_ln_get_device_token(), req.story_theme[0] ? req.story_theme : NULL); + ln_ws_send_random_story_request("随机故事"); } } else if (mail.cmd == LN_HTTP_SERVICE_CMD_STORY_EXIT_INQUIRY) 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 f5201f3c9..727f93def 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 @@ -267,7 +267,7 @@ void ln_parse_voice_chat_response(const char *json_str, int json_len) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "开始哄睡\n"); push_sleep_mode_start_notification(NULL, 1); // 1意图识别结果 - ln_ws_send_random_story_request("随机故事"); + // ln_ws_send_random_story_request("随机故事"); } else if(strcmp(intention_str, "EndSleepMode") == 0) {