From: luozheng <1732036298@qq.com> Date: Mon, 8 Dec 2025 14:54:00 +0000 (+0800) Subject: cat1_27版本升级(补) X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F2895%2Fhead;p=mirrors%2FFD230.git cat1_27版本升级(补) --- 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 {