From fddfce7213c70167c6efdff4fbd6b5f9e043df29 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Fri, 21 Nov 2025 11:49:53 +0800 Subject: [PATCH] =?utf8?q?fd272:=E4=BF=AE=E6=94=B9=E4=BA=8C=E7=BB=B4?= =?utf8?q?=E7=A0=81=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/watchQRcode/src/WatchQRCodePresenter.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/watchQRcode/src/WatchQRCodePresenter.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/watchQRcode/src/WatchQRCodePresenter.cpp index f26aa1c9b..f198083b8 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/watchQRcode/src/WatchQRCodePresenter.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/watchQRcode/src/WatchQRCodePresenter.cpp @@ -153,9 +153,10 @@ namespace OHOS std::string WatchQRCodePresenter::WatchQRCodeGetQRCodeStr() { - /*实例:https://m.fuyingy.com/new/app_download?c=5&p=5&m=7a:8c:2d:61:9a:fc*/ - /*m=后边的值为手表 mac 地址,前面部分为固定格式*/ - std::string QRCodeStr = "https://m.fuyingy.com/new/app_download?c=5&p=5&m="; + // 二维码需求调整:二维码前缀地址中增加一个jumpcode=ADDWATCH的值。 + // https://m.fuyingy.com/new/app_download?jumpcode=ADDWATCH&c=*&p=*&m=* + // 案例:https://m.fuyingy.com/new/app_download?jumpcode=ADDWATCH&c=5&p=5&m=1b:27:03:06:11:28 + std::string QRCodeStr = "https://m.fuyingy.com/new/app_download?jumpcode=ADDWATCH&c=5&p=5&m="; std::string MacAddress = GetCurrentWatchMacAddress(); // 假设这是获取当前手表 Mac 地址的函数 QRCodeStr += MacAddress; WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "QRCodeStr:%s", QRCodeStr.c_str()); -- 2.17.1