黄学彪
2019-10-10 2ed75b8b337048e5d75e6d9ec8307633134f02fd
ZigbeeApp/Shared/Phone/UserView/HomePage.cs
@@ -4,7 +4,7 @@
namespace Shared.Phone.UserView
{
    /// <summary>
    /// Home page.
    /// Home page.第二版呀
    /// </summary>
    public class HomePage : PageLayout
    {
@@ -62,15 +62,15 @@
                    {
                        new System.Threading.Thread(async () =>
                        {
                            //启动ZigBee
                            ZigBee.Common.Application.Init();
                            //登录成功
                            var homes = await House.GetHomeLists();
                            //刷新个人中心的内存及线程
                            await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread();
                            Room.canInitAllRoom = true;
                            Room.CanInitAllRoom = true;
                            Room.InitAllRoom();
                            Application.RunOnMainThread(() =>
@@ -94,6 +94,7 @@
                        //登录失败,也直接进入主页
                        new System.Threading.Thread(async () =>
                        {
                            //启动ZigBee
                            ZigBee.Common.Application.Init();
                            //登录成功
@@ -102,7 +103,7 @@
                            //刷新个人中心的内存及线程
                            await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread();
                            Room.canInitAllRoom = true;
                            Room.CanInitAllRoom = true;
                            Room.InitAllRoom();
                            Application.RunOnMainThread(() =>
@@ -166,11 +167,9 @@
                    var responseDataObj = Newtonsoft.Json.JsonConvert.DeserializeObject<Shared.Common.ResponseEntity.UserLoginRes>(revertObj.ResponseData.ToString());
                    var revertData = responseDataObj;
                    Config.Instance.UserID = revertData.UserID;
                    Config.Instance.MasterID = revertData.MainUserID;
                    Config.Instance.AccountType = revertData.UserType;
                    Config.Instance.Account = revertData.Account;
                    Config.Instance.Password = password;
                    Config.Instance.MD5PWD = revertData.MD5PWD;
                    Config.Instance.Guid = revertData.Guid;
                    Config.Instance.MqttKey = revertData.MqttKey;
                    Config.Instance.LoginDateTime = DateTime.Now;