From 2fda4b6d4bb5a43a3129c0791f03c367399834a6 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Mon, 8 Dec 2025 22:54:00 +0800 Subject: [PATCH] =?utf8?q?cat1=5F27=E7=89=88=E6=9C=AC=E5=8D=87=E7=BA=A7(?= =?utf8?q?=E8=A1=A5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../thunderbird/src/ThunderBirdModel.cpp | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) 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 c469789e9..9c1767bc6 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 @@ -1613,12 +1613,26 @@ extern "C" { std::string cat1_pyver = uapi_dev_runtime_get_cat1_pyver(); if(cat1_pyver == "PY_SRV_V27") { + LOS_Msleep(1000); push_ota_status(OTA_UI_STATUS_FORCE_START); const char * text1 = "EG8AK1022V27_1"; - ln_ota_get_task_http_CAT1(uapi_ln_get_device_id(), uapi_ln_get_device_token(), text1); + if(ERRCODE_SUCC == ln_ota_get_task_http_CAT1(uapi_ln_get_device_id(), uapi_ln_get_device_token(), text1)) + { + LOS_Msleep(1000); + } + else + { + ln_ota_get_task_http_CAT1(uapi_ln_get_device_id(), uapi_ln_get_device_token(), text1); + } const char * text2 = "EG8AK1022V27_2"; - ln_ota_get_task_http_CAT1(uapi_ln_get_device_id(), uapi_ln_get_device_token(), text2); - + if(ERRCODE_SUCC == ln_ota_get_task_http_CAT1(uapi_ln_get_device_id(), uapi_ln_get_device_token(), text2)) + { + LOS_Msleep(1000); + } + else + { + ln_ota_get_task_http_CAT1(uapi_ln_get_device_id(), uapi_ln_get_device_token(), text2); + } } else { -- 2.17.1