From 1cd93851bde6ec19c07f1445899a76ab0dfa507d Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期四, 13 四月 2023 16:01:53 +0800 Subject: [PATCH] 1.增加推送判断是否加载了类的方法 2.修改launch screen引用 3.去掉门锁测试环境appkey逻辑 --- HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs | 36 +++++++++--------------------------- 1 files changed, 9 insertions(+), 27 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs index c0a6841..dc82ca1 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs @@ -252,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); } } @@ -341,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); } } @@ -422,9 +402,11 @@ 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: + { + //璺宠浆鍒癮ndroid,ios閭h竟鍘� + HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.SkipAddDeviceActivity(device.spk); } break; } -- Gitblit v1.8.0