| | |
| | | /// </summary>
|
| | | public bool DoorUnLockByRemote = false;
|
| | | /// <summary>
|
| | | /// 是否使用安防快捷方式
|
| | | /// </summary>
|
| | | public bool SafetyShortcut = false;
|
| | | /// <summary>
|
| | | /// 密码剩余可输入次数
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public int PasswordInputCount = 3;
|
| | | /// <summary>
|
| | | /// 手势密码剩余可输入次数
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public int PasswordGestureInputCount = 5;
|
| | | /// <summary>
|
| | | /// 检测APP是否能够退出
|
| | | /// </summary>
|
| | |
| | | {
|
| | | return new AccountOption();
|
| | | }
|
| | | var varByte = Shared.IO.FileUtils.ReadFile(fileName);
|
| | | string strValue = System.Text.Encoding.UTF8.GetString(varByte);
|
| | | var info = Newtonsoft.Json.JsonConvert.DeserializeObject<AccountOption>(strValue);
|
| | | //解密密码
|
| | | string hdlKey = "hD1(La3o";
|
| | | info.PswAuthentication = UserCenterLogic.DecryptPassword(hdlKey, info.PswAuthentication);
|
| | | info.GestureAuthentication = UserCenterLogic.DecryptPassword(hdlKey, info.GestureAuthentication);
|
| | | try
|
| | | {
|
| | | var varByte = Shared.IO.FileUtils.ReadFile(fileName);
|
| | | string strValue = System.Text.Encoding.UTF8.GetString(varByte);
|
| | | var info = Newtonsoft.Json.JsonConvert.DeserializeObject<AccountOption>(strValue);
|
| | | //解密密码
|
| | | string hdlKey = "hD1(La3o";
|
| | | info.PswAuthentication = UserCenterLogic.DecryptPassword(hdlKey, info.PswAuthentication);
|
| | | info.GestureAuthentication = UserCenterLogic.DecryptPassword(hdlKey, info.GestureAuthentication);
|
| | |
|
| | | return info;
|
| | | return info;
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | HdlLogLogic.Current.WriteLog(ex);
|
| | | return new AccountOption();
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | public void ResetPasswordCount()
|
| | | {
|
| | | this.PasswordInputCount = 3;
|
| | | this.PasswordGestureInputCount = 5;
|
| | | }
|
| | |
|
| | | #endregion
|