cat1_27版本升级(补) 2895/1 2895/head 2896/target/1
authorluozheng <1732036298@qq.com>
Mon, 8 Dec 2025 14:54:00 +0000 (22:54 +0800)
committerluozheng <1732036298@qq.com>
Mon, 8 Dec 2025 14:54:00 +0000 (22:54 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp

index c469789..9c1767b 100644 (file)
@@ -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
                         {