old mode 100644
new mode 100755
| | |
| | | return (DateTime.Now - LoginDateTime).Days < 7; |
| | | } |
| | | } |
| | | /// <summary> |
| | | ///暂时默认 |
| | | /// </summary> |
| | | public string UserName = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// 账户登录成功的账户类型 |
| | | /// </summary> |
| | |
| | | { |
| | | config = new Config { }; |
| | | } |
| | | } |
| | | |
| | | if (config.PasswordEncrypt != string.Empty)
|
| | | {
|
| | | //解密
|
| | | config.Password = Phone.UserCenter.UserCenterLogic.DecryptPassword("hD1(La3o", config.PasswordEncrypt);
|
| | | } |
| | | }
|
| | |
|
| | | /// <summary> |
| | | /// 当前登录的帐号 |
| | | /// </summary> |
| | |
| | | /// <summary> |
| | | /// 当前帐号密码 |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public string Password = string.Empty; |
| | | /// <summary>
|
| | | /// 加密密码
|
| | | /// </summary> |
| | | public string PasswordEncrypt = string.Empty; |
| | | /// <summary> |
| | | /// 短信登录返回的md5后的密码 |
| | | /// </summary> |
| | |
| | | /// <summary> |
| | | /// 登陆账号的Guid |
| | | /// </summary> |
| | | public string Guid = string.Empty;
|
| | | /// <summary>
|
| | | /// 是否是管理员权限(变更了,成员的时候,这个也为ture。为什么会声明这样变量,因为有些接口必须使用原来的Token)
|
| | | /// </summary>
|
| | | public bool isAdministrator = false; |
| | | public string Guid = string.Empty; |
| | | /// <summary>
|
| | | /// 成员请求控制主帐号此住宅时请求基地址
|
| | | /// </summary> |
| | |
| | | /// 成员请求控制主帐号此住宅时请求基地址的LoginAccessToken的值
|
| | | /// </summary> |
| | | public string AdminRequestToken = string.Empty; |
| | | /// <summary>
|
| | | /// 远程连接的Mqtt的客户端ID
|
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public string ConnEmqClientId = string.Empty;
|
| | | /// <summary>
|
| | | /// 当前登录的账号是不是之前的账号
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public bool TheSameLoginAccount = false; |
| | | |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | /// <summary> |
| | |
| | | } |
| | | |
| | | /// <summary>
|
| | | /// 登录过的帐号信息 |
| | | /// 登录时Token |
| | | /// </summary> |
| | | public List<string> AccountList = new List<string> { }; |
| | | public string LoginToken = string.Empty; |
| | | |
| | | public List<string> HomeFilePathList = new List<string> { }; |
| | | |
| | | public string HomeId = string.Empty;
|
| | | |
| | |
|
| | | [Newtonsoft.Json.JsonIgnore] |
| | | private House m_Home = null; |
| | | /// <summary> |
| | |
| | | {
|
| | | return m_Home;
|
| | | } |
| | | m_Home = House.GetHouseByHouseId(HomeId); |
| | | m_Home = Phone.UserCenter.HdlResidenceLogic.Current.GetHouseByHouseId(HomeId); |
| | | if (m_Home == null) |
| | | { |
| | | m_Home = new House(); |
| | |
| | | /// </summary> |
| | | public void Save() |
| | | { |
| | | //加密,不能保存明码 |
| | | this.PasswordEncrypt = Phone.UserCenter.UserCenterLogic.EncryptPassword("hD1(La3o", this.Password); |
| | | var bytes = System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this)); |
| | | Shared.IO.FileUtils.WriteFileByBytes(fileName, bytes); |
| | | ReFresh(); |