From 87b48899789cecc9d4c78408da8bb5cc0a4b4c6c Mon Sep 17 00:00:00 2001 From: Caisking Date: Sun, 28 Sep 2025 20:23:44 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E5=B7=B2=E7=BB=91=E5=AE=9A?= =?utf8?q?=E4=B8=8B=E7=9A=84=E6=9C=89=E7=BD=91=E4=B9=8B=E5=90=8E=E7=9A=84o?= =?utf8?q?ta=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/thunderbird/src/ThunderBirdModel.cpp | 10 +++++++--- 1 file changed, 7 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 3dd36189b..3809b161f 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 @@ -1022,9 +1022,13 @@ do_ln_http_server_send_data(LN_HTTP_SERVICE_CMD_GET_USER_ID, NULL, 0); // 网络连接成功,调用HTTP服务获取设备Token // 获取一下OTA 是否有最新版本 - int ota = ota_update_boot(); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ota_update_boot:%d",ota); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Network connected, calling HTTP service"); + + // 需要是绑定状态才更新 + if(bind_status == true) + { + ota_update_boot(); + } + #if JUHEPINGTAI uapi_init_all_websocket_servers(); uapi_start_all_websocket_servers(); // 连接服务器 -- 2.17.1