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());