From: 胡传军 <1224667075@qq.com> Date: Wed, 17 Jul 2024 01:43:43 +0000 (+0000) Subject: Merge #537 into sdk602patch0626 from refs/changes/537/head X-Git-Tag: release_V1.2.70_20241020_135402~792^2~6^2~1 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=dd74c6754032758713fe10d63ce9cc185b7d2bc1;p=mirrors%2FFD230.git Merge #537 into sdk602patch0626 from refs/changes/537/head Code review from 胡传军 * refs/changes/537/head: (2 commits squashed) - 修复通讯录运营商和地址的读写错误BUG - Merge branch 'sdk602patch0626' of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into 0626 Signed-off-by: aliyun8003852482 <1224667075@qq.com> Reviewed-by: snickersun@163.com Merged-by: snickersun@163.com CR-link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/537 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/phone/src/phoneaddressmodel.cpp b/code/sdk/application/wearable/fd230app/nativeui/phone/src/phoneaddressmodel.cpp index 09fff697a..e2ae148d1 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/phone/src/phoneaddressmodel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/phone/src/phoneaddressmodel.cpp @@ -25,6 +25,7 @@ namespace OHOS { int num=buf[0];//人数 + printf("人数: %d\r\n",num); if(num>20) { num=0; @@ -63,7 +64,8 @@ namespace OHOS // addressbook_t.Contact_t[j].name=name; } offset=offset+name_len+1; - uint8_t phone_num=buf[offset]; + uint8_t phone_num=buf[offset]; + printf("号码个数%d\r\n",phone_num); offset=offset+1; addressbook_t.Contact_t[j].phone_num=phone_num; for(int i=0;i