From a64a24cf8a5295e02823e003446c0ae94dfc0d30 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Tue, 28 Oct 2025 15:03:52 +0800 Subject: [PATCH] =?utf8?q?ln:=E8=A1=A8=E6=83=85=E4=B8=8B=E8=BD=BD=E8=BF=87?= =?utf8?q?=E8=BD=BD=E4=B8=AD=E4=B8=8D=E8=83=BD=E5=88=A0=E9=99=A4=E8=A1=A8?= =?utf8?q?=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.c | 2 +- code/sdk/zhihui/leiniao/imsl_ln/ln_api_emoji.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/code/sdk/zhihui/leiniao/imsl_ln/ln_api.c b/code/sdk/zhihui/leiniao/imsl_ln/ln_api.c index 4c79a0697..c4f586bae 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 * 4); + HTTPC_RESULT prep = ln_http_prepare_auto(&client_data, 2048, LN_CLIENT_PREPARE_SIZE * 2); if (prep != HTTP_SUCCESS) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[DOWNLOAD_RESUME] prepare failed: %d", prep); diff --git a/code/sdk/zhihui/leiniao/imsl_ln/ln_api_emoji.c b/code/sdk/zhihui/leiniao/imsl_ln/ln_api_emoji.c index 9d0c53356..08972b48b 100644 --- a/code/sdk/zhihui/leiniao/imsl_ln/ln_api_emoji.c +++ b/code/sdk/zhihui/leiniao/imsl_ln/ln_api_emoji.c @@ -733,6 +733,13 @@ void ln_parse_delete_emoji(const char *json_buf, int json_len) return; } + //表情下载过程中不能删除表情 + if(uapi_ln_get_file_download_type() == LN_FILE_DOWNLOAD_TYPE_EMOJI && uapi_ln_is_file_downloading() == 1) + { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[DELETE_EMOJI] 表情下载过程中不能删除表情"); + return; + } + // 复制并终止字符串 char *text = (char *)malloc((size_t)json_len + 1); if (!text) -- 2.17.1