| | |
| | | HomePage.Instance.ShowLoginLoadView(); |
| | | new System.Threading.Thread(async () => |
| | | { |
| | | //启动ZigBee |
| | | ZigBee.Common.Application.Init(); |
| | | var responseDataObj = Newtonsoft.Json.JsonConvert.DeserializeObject<Shared.Common.ResponseEntity.UserLoginRes>(requestRevetLoginCodeOBJ.ResponseData.ToString()); |
| | | var revertData = responseDataObj; |
| | | Config.ReFresh(); |
| | | Config.Instance.Account = revertData.Account; |
| | | Config.Instance.MqttKey = revertData.MqttKey; |
| | | Config.Instance.Guid = revertData.Guid; |
| | | Config.Instance.MD5PWD = revertData.MD5PWD; |
| | | Config.Instance.LoginDateTime = DateTime.Now; |
| | | Config.Instance.ConnectZigbeeMqttBrokerPwd = revertData.ConnectZigbeeMqttBrokerPwd; |
| | | Config.Instance.ConnectZigbeeMqttClientId = revertData.ConnectZigbeeMqttClientId; |
| | | Config.Instance.ZigbeeMqttBrokerLoadSubDomain = revertData.ZigbeeMqttBrokerLoadSubDomain; |
| | | if (Config.Instance.AccountList.Find((obj) => obj == revertData.Account) == null) |
| | | { |
| | | Config.Instance.AccountList.Add(revertData.Account); |
| | |
| | | Config.Instance.MD5PWD = revertData.MD5PWD; |
| | | Config.Instance.Save(); |
| | | var resultRegID = await CommonPage.Instance.PushRegID(); |
| | | var homes = await House.GetHomeLists(); |
| | | |
| | | var homes = await House.GetHomeLists();
|
| | | //启动ZigBee
|
| | | ZigBee.Common.Application.Init(); |
| | | //刷新个人中心的内存及线程 |
| | | await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread(); |
| | | |