From 54c202bd4867092fca2bc6f96bec0cfd1056a46a Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期一, 06 十一月 2023 11:24:20 +0800
Subject: [PATCH] 2023年11月06日11:23:46

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs |   40 ++++++++++++----------------------------
 1 files changed, 12 insertions(+), 28 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
index b1cbf37..14acce9 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
@@ -19,6 +19,7 @@
 #if __ANDROID__
     public class dddxx { }
 #else
+        //澶у崕鎽勫儚澶磗dk浠g悊锛圫hared.IOS.HDLCNVRSDK)
         hdlLCNVRSDKDelegate hdlLCNVRDelegate;
         public class hdlLCNVRSDKDelegate : HDLLCNVRSDKDelegate
         {
@@ -193,7 +194,7 @@
                             Shared.IOS.HDLCNVRSDK.HDLLCNVRSDK.SharedInstance().AccessToken = UserInfo.Current.LoginTokenString;
                             Shared.IOS.HDLCNVRSDK.HDLLCNVRSDK.SharedInstance().RefreshToken = UserInfo.Current.RefreshToken;
                             Shared.IOS.HDLCNVRSDK.HDLLCNVRSDK.SharedInstance().HomeId = DB_ResidenceData.Instance.CurrentRegion.id;
-                            //璺宠浆娣诲姞鎽勫儚澶�
+                            //璺宠浆娣诲姞鎽勫儚澶�(Shared.IOS.HDLCNVRSDK)
                             hdlLCNVRDelegate = new hdlLCNVRSDKDelegate(() =>
                             {//娣诲姞鎴愬姛杩斿洖浜嬩欢
                                 refreshView.BeginHeaderRefreshing();
@@ -251,24 +252,14 @@
                                                                     var bindResult = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePackNew>(msg);
                                                                     if (bindResult != null)
                                                                     {
+                                                                        string tipTitle = Language.StringByID(StringId.Tip);
                                                                         if (bindResult.Code == "147021") {
-                                                                            string tipTitle = "鎻愮ず";
-                                                                            string tipMsg = "鏃犳硶缁戝畾璇ヨ澶囷紝璇蜂粠娌充笢娓犻亾璐拱璇ョ被鍨嬩骇鍝�";
-                                                                            if (Language.CurrentLanguage != "Chinese")
-                                                                            {
-                                                                                tipTitle = "Tip";
-                                                                                tipMsg = "Unable to bind this device. Please purchase this type of product from HDL";
-                                                                            }
+                                                                            string tipMsg = Language.StringByID(StringId.UnableToBindThisDeviceTip);
                                                                             new PublicAssmebly().TipMsg(tipTitle, tipMsg);
                                                                         }
                                                                         else
                                                                         {
-                                                                            string tipTitle = "鎻愮ず";
                                                                             string tipMsg = $"{bindResult.message}({bindResult.Code})";
-                                                                            if (Language.CurrentLanguage != "Chinese")
-                                                                            {
-                                                                                tipTitle = "Tip";
-                                                                            }
                                                                             new PublicAssmebly().TipMsg(tipTitle, tipMsg);
                                                                         }
                                                                     }
@@ -340,25 +331,15 @@
                                                 var bindResult = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePackNew>(msg);
                                                 if (bindResult != null)
                                                 {
+                                                    string tipTitle = Language.StringByID(StringId.Tip);
                                                     if (bindResult.Code == "147021")
                                                     {
-                                                        string tipTitle = "鎻愮ず";
-                                                        string tipMsg = "鏃犳硶缁戝畾璇ヨ澶囷紝璇蜂粠娌充笢娓犻亾璐拱璇ョ被鍨嬩骇鍝�";
-                                                        if (Language.CurrentLanguage != "Chinese")
-                                                        {
-                                                            tipTitle = "Tip";
-                                                            tipMsg = "Unable to bind this device. Please purchase this type of product from HDL";
-                                                        }
+                                                        string tipMsg = Language.StringByID(StringId.UnableToBindThisDeviceTip);
                                                         new PublicAssmebly().TipMsg(tipTitle, tipMsg);
                                                     }
                                                     else
                                                     {
-                                                        string tipTitle = "鎻愮ず";
                                                         string tipMsg = $"{bindResult.message}({bindResult.Code})";
-                                                        if (Language.CurrentLanguage != "Chinese")
-                                                        {
-                                                            tipTitle = "Tip";
-                                                        }
                                                         new PublicAssmebly().TipMsg(tipTitle, tipMsg);
                                                     }
                                                 }
@@ -421,9 +402,12 @@
                                 this.RemoveFromParent();
                             };
                             break;
-                        case SPK.VideoDoorLock: {
-                                //璺宠浆鍒癮ndroid閭h竟鍘�
-                                HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.SkipAddDeviceActivity(SPK.VideoDoorLock);
+                        case SPK.Peephole:
+                        case SPK.VideoDoorLock:
+                        case SPK.Ev_Ipcam:
+                            {
+                                //璺宠浆鍒癮ndroid,ios閭h竟鍘�
+                                HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.SkipAddDeviceActivity(device.spk);
                             }
                             break;
                     }

--
Gitblit v1.8.0