黄学彪
2019-11-13 8b9ce384b26c414db32f98e94e088f5334869c2d
ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs
@@ -42,6 +42,12 @@
            btnIcon.InitControl();
            btnIcon.ButtonClickEvent += ((sender, e) =>
            {
                Contacts.ContactAction = (phoneName, phoneNum) =>
                {
                    //保存联系人
                    this.SaveCoercePhoneNumber("86", phoneNum, phoneName);
                };
                Contacts.Open();
            });
            //初始化中部信息
@@ -153,13 +159,16 @@
        /// </summary>
        /// <param name="areaCode"></param>
        /// <param name="phoneNum"></param>
        /// <param name="strNote"></param>
        private async void SaveCoercePhoneNumber(string areaCode, string phoneNum, string strNote)
        {
            Dictionary<string, string> dicPhone = new Dictionary<string, string>();
            dicPhone[phoneNum] = areaCode;
            var listPhone = new List<string>();
            listPhone.Add(areaCode + "-" + phoneNum);
            var listNote = new List<string>();
            listNote.Add(strNote);
            //变更
            var result = await HdlSafeguardLogic.Current.SetCoercePhoneNumber(dicPhone);
            var result = await HdlSafeguardLogic.Current.SetCoercePhoneNumber(listPhone, listNote);
            if (result == false)
            {
                return;