ln:表情下载过载中不能删除表情 2616/target/3 2622/1 2622/head 2623/target/1
authorluozheng <1732036298@qq.com>
Tue, 28 Oct 2025 07:03:52 +0000 (15:03 +0800)
committerluozheng <1732036298@qq.com>
Tue, 28 Oct 2025 07:03:52 +0000 (15:03 +0800)
code/sdk/zhihui/leiniao/imsl_ln/ln_api.c
code/sdk/zhihui/leiniao/imsl_ln/ln_api_emoji.c

index 4c79a06..c4f586b 100644 (file)
@@ -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);
index 9d0c533..08972b4 100644 (file)
@@ -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)