From: Caisking Date: Wed, 24 Sep 2025 10:04:38 +0000 (+0800) Subject: 优化绑定的,没有连接外网也可以连接 X-Git-Tag: V1.0.9_20251128_194606_LN~327 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=a642372a24f54a142009ffa16813c6bcfd05a1f1;p=mirrors%2FFD230.git 优化绑定的,没有连接外网也可以连接 --- 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 2af88b4fe..1c0293e6a 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 @@ -1042,6 +1042,8 @@ { if (init_falg == false) { + //发送获取绑定用户ID + do_ln_http_server_send_data(LN_HTTP_SERVICE_CMD_GET_USER_ID, NULL, 0); // 网络连接成功,调用HTTP服务获取设备Token // 获取一下OTA 是否有最新版本 int ota = ota_update_boot(); diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp index 9dbc8b3b5..464360ffd 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp @@ -633,10 +633,11 @@ namespace OHOS void ThunderBirdPresenter::UpdateQrcodeIfValid() { - if(ThunderBirdModel::GetInstance()->Get_is_ln_get_device_token_success() == false) - { - return; - } + // 不需要有网 小程序 也可以绑定 + // if(ThunderBirdModel::GetInstance()->Get_is_ln_get_device_token_success() == false) + // { + // return; + // } // 检查IMEI是否有效 并且 二维码是否有效更新过 if (ThunderBirdModel::GetInstance()->IsIMEIValid() && ThunderBirdModel::GetInstance()->GetQrcodeChecked() == true) {