old mode 100755
new mode 100644
| | |
| | | {
|
| | | //登录
|
| | | var loginSuccess = LoginByPWDAsync(Config.Instance.Account, Config.Instance.Password);
|
| | |
|
| | | //登录成功,或者没有网络都可以登录
|
| | | if (loginSuccess == 1 || loginSuccess == 2)
|
| | | {
|
| | |
| | | var requestObj = new SendDataToServer.LoginObj
|
| | | {
|
| | | Account = account,
|
| | | Password = password,
|
| | | Source = source,
|
| | | Company = company
|
| | | Password = password
|
| | | };
|
| | | var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject(requestObj);
|
| | | //登陆接口特殊,需要快一点访问,设置3秒超时
|
| | |
| | | Config.Instance.LoginToken = revertData.Token;
|
| | | //上报设备ID
|
| | | CommonPage.Instance.PushRegID();
|
| | | isLoginSuccess = 1;
|
| | | isLoginSuccess = 1; |
| | | |
| | | //#if iOS
|
| | | // //初始化全视通 |
| | | // Shared.IOS.HDLFVSDK.Video.Init("",revertData.UserID.ToString()); |
| | | //#endif
|
| | | }
|
| | | else if (stateCodeStr == "YOUDATANOISLOCALREGION")
|
| | | {
|
| | |
| | | //账号不存在
|
| | | isLoginSuccess = 0;
|
| | | } |
| | | else if (stateCodeStr == "BERESTRICT") |
| | | { |
| | | //此账号无权登录 |
| | | isLoginSuccess = 0; |
| | | } |
| | | return isLoginSuccess; |
| | | } |
| | | } |