wxr
2023-07-18 16bd0e17057df5616706ff9fa3ac706587364192
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