From: Caisking Date: Fri, 23 May 2025 09:32:31 +0000 (+0800) Subject: 修改应用市场消费者类型 X-Git-Tag: leiniao_debug_1.0.0_20250922_020716~284^2~1 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=646835c6d026e1ed240a463f83fd3efe311c6e08;p=mirrors%2FFD230.git 修改应用市场消费者类型 --- diff --git a/code/sdk/application/wearable/fd230/service/app_store/app_store.cpp b/code/sdk/application/wearable/fd230/service/app_store/app_store.cpp index d04b3529b..06d7ae484 100644 --- a/code/sdk/application/wearable/fd230/service/app_store/app_store.cpp +++ b/code/sdk/application/wearable/fd230/service/app_store/app_store.cpp @@ -296,7 +296,7 @@ cJSON* ble_get_device_info() } // 3. 添加consumerType - if (cJSON_AddStringToObject(root, "consumerType", "1") == NULL) { + if (cJSON_AddStringToObject(root, "consumerType", "0") == NULL) { goto error; } @@ -341,16 +341,8 @@ cJSON* ble_get_device_info() } // 10. 添加sdkVersion - - if (uapi_get_buildversion((uint8_t *)version_buf, version_len) != 0) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_BLE, "Failed to get SDK version"); - if (cJSON_AddStringToObject(root, "sdkVersion", "unknown") == NULL) { - goto error; - } - } else { - if (cJSON_AddStringToObject(root, "sdkVersion", version_buf) == NULL) { - goto error; - } + if (cJSON_AddStringToObject(root, "sdkVersion", "12") == NULL) { + goto error; } // 11. 添加resolution