黄学彪
2020-09-18 c7df85937f73fb347ee0b19e9c052d2d00a6df6c
ZigbeeApp/Shared/Phone/UserView/HomePage.cs
@@ -59,7 +59,6 @@
                {
                    //登录
                    var loginSuccess = LoginByPWDAsync(Config.Instance.Account, Config.Instance.Password);
                    //登录成功,或者没有网络都可以登录
                    if (loginSuccess == 1 || loginSuccess == 2)
                    {
@@ -121,9 +120,7 @@
            var requestObj = new SendDataToServer.LoginObj
            {
                Account = account,
                Password = password,
                Source = source,
                Company = company
                Password = password
            };
            var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject(requestObj);
            //登陆接口特殊,需要快一点访问,设置3秒超时
@@ -180,6 +177,11 @@
                //账号不存在
                isLoginSuccess = 0;
            }
            else if (stateCodeStr == "BERESTRICT")
            {
                //此账号无权登录
                isLoginSuccess = 0;
            }
            return isLoginSuccess;
        }
    }