From 16bd0e17057df5616706ff9fa3ac706587364192 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 18 七月 2023 14:55:59 +0800 Subject: [PATCH] 告警推送,加密逻辑判断优化 --- Crabtree/SmartHome/UI/SimpleControl/EquipmentPublicClass.cs | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/EquipmentPublicClass.cs b/Crabtree/SmartHome/UI/SimpleControl/EquipmentPublicClass.cs index b872171..181a4cd 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/EquipmentPublicClass.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/EquipmentPublicClass.cs @@ -117,6 +117,18 @@ }, SendCount.Three, true, true); var result = control.UsefulBytes; + //浼樺寲涓�涓嬶紝闃叉閫昏緫寮傚父 + if(result == null) { + UserConfig.Instance.IsLocalEncrypt = true; + control.Send (new Target () { + IPEndPoint = new System.Net.IPEndPoint (System.Net.IPAddress.Parse (new Net.NetWiFi ().BroadcastIpAddress.ToString ()), 6000), + Command = Command.ReadGateway, + SubnetID = SmartHome.MqttCommon.GatewayCommon.SubnetID, + DeviceID = SmartHome.MqttCommon.GatewayCommon.DeviceID, + AddData = new byte [] { (byte)new Random ().Next (255), (byte)new Random ().Next (255) }, + }, SendCount.Three, true, true); + result = control.UsefulBytes; + } #endregion if (result != null) { @@ -249,6 +261,12 @@ // }); //} + //鍦ㄧ‘瀹氱敤鎴峰強浣忓畢淇℃伅鍚庯紝鍒濆鍖栧熀鏈俊鎭紝濡傦細 + var logBean = HDL_ON_Android.Aliyu.AliyuLogUtil.getLogBean; + + logBean.setHomeId (UserConfig.Instance.CurrentRegion.Id); + logBean.setUserId (MainPage.LoginUser.ID); + logBean.setAppVersion (MainPage.RequestVersion); #if DEBUG Shared.Utlis.WriteLine ($"CheckLinkRemote: 缁撴潫"); #endif -- Gitblit v1.8.0