From dee21bf452a8979d0515d13e534fbb69ed9715dd Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期二, 01 九月 2020 15:33:13 +0800 Subject: [PATCH] 上传一个版本 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs | 36 +++++++++++++++++++++++------------- 1 files changed, 23 insertions(+), 13 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs index dc6b01c..38dde63 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs @@ -533,21 +533,16 @@ /// </summary> public static void RefreshHomeObject() { - //澶囦唤鐨勬暟鎹紝鏈夊彲鑳芥槸涓讳汉鑷繁涓婁紶鐨勶紝濡傛灉绠$悊鍛樼櫥闄嗘椂锛屼粬鑾峰彇鐨勫浠芥暟鎹湁鐐圭壒娈� - //姣斿涓嬮潰杩欎笁涓笢瑗垮湪涓昏处鍙烽偅閲屾槸涓嶉渶瑕佺殑 - bool isOthreShare = Config.Instance.Home.IsOthreShare; - int accountType = Config.Instance.Home.AccountType; - string mainMark = Config.Instance.Home.MainUserDistributedMark; - double Longitude = Config.Instance.Home.Longitude; - double Latitude = Config.Instance.Home.Latitude; //杩樺師浣忓畢瀵硅薄 - Config.Instance.Home = HdlResidenceLogic.Current.GetHouseByHouseId(Config.Instance.Home.Id); - Config.Instance.Home.IsOthreShare = isOthreShare; - Config.Instance.Home.AccountType = accountType; - Config.Instance.Home.MainUserDistributedMark = mainMark; - Config.Instance.Home.Longitude = Longitude; - Config.Instance.Home.Latitude = Latitude; + var home = HdlResidenceLogic.Current.GetHouseByHouseId(Config.Instance.Home.Id); + + //鍙樻洿妤煎眰 + Config.Instance.Home.FloorDics = home.FloorDics; + Config.Instance.Home.CurrentFloorId = string.Empty; Config.Instance.Home.Save(false); + + //涓婚〉闇�瑕侀噸鏂板埛鏂� + UserView.UserPage.Instance.RefreshAllForm = true; } #endregion @@ -814,6 +809,16 @@ HdlGatewayLogic.Current.ResetComandToBindBackupGateway(); //璇诲彇闅愬尶閰嶇疆 HdlBackupLogic.Current.LoadHideOption(); + //璋冭瘯锛氬己鍒跺紑鍚悗鍙拌皟璇旳pp鍔熻兘 + if (UserCenterResourse.HideOption.StartDebugApp == 1) + { + HdlThreadLogic.Current.RunMain(() => + { + var form = new HideOption.HideOptionMainForm(); + form.AddForm(); + }); + return false; + } } //鍏抽棴鎵�鏈夋帴鏀� @@ -902,6 +907,11 @@ } //APP缂撳瓨鍔犺浇瀹屾垚 UserCenterResourse.AccountOption.AppCanSignout = true; + if (Shared.Phone.Device.Logic.Send.If_Exist == "1") + { + //浠ユ湰鍦扮姸鎬佷负涓绘墦寮�GPS鏈嶅姟 + Application.StartGPSLocationService(); + } return true; } -- Gitblit v1.8.0