From 5efa3307f3091bae69eceac38c4884ada3239550 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Tue, 16 Jul 2024 20:14:12 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E8=AE=AF=E5=BD=95?= =?utf8?q?=E8=BF=90=E8=90=A5=E5=95=86=E5=92=8C=E5=9C=B0=E5=9D=80=E7=9A=84?= =?utf8?q?=E8=AF=BB=E5=86=99=E9=94=99=E8=AF=AFBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/phone/src/phoneaddressmodel.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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