| | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region 用户数据 |
| | | /// <summary> |
| | | /// 用户名称 |
| | | /// </summary> |
| | |
| | | /// 用户头像图片 |
| | | /// </summary> |
| | | public string headImagePagePath = "LoginIcon/2.png"; |
| | | /// <summary> |
| | | /// 用户头像byte数据 |
| | | /// </summary> |
| | | public byte[] headImagePageBytes = null; |
| | | ///// <summary> |
| | | ///// 用户头像byte数据 |
| | | ///// </summary> |
| | | //public byte[] headImagePageBytes = null; |
| | | /// <summary> |
| | | /// 上一次登录时间 |
| | | /// </summary> |
| | |
| | | /// UserType B端账号 C端账号 |
| | | /// </summary> |
| | | public string userType = "USER_C"; |
| | | |
| | | |
| | | /// <summary> |
| | | /// 用户住宅列表 |
| | | /// </summary> |
| | | public List<RegionInfoRes> regionList = new List<RegionInfoRes>(); |
| | | |
| | | #endregion |
| | | |
| | | public void SaveUserInfo() |
| | | { |
| | | FileUtils.WriteFileByBytes(ConfigFile, Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this))); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 退出登录重置参数 |
| | | /// </summary> |
| | | public void LogoutReset() |
| | | { |
| | | userName = ""; |
| | | ID = ""; |
| | | LoginTokenString = ""; |
| | | RefreshToken = ""; |
| | | userType = "USER_C"; |
| | | LastTime = DateTime.MinValue; |
| | | headImagePagePath = "LoginIcon/2.png";//重置用户头像 |
| | | } |
| | | |
| | | private byte[] convertByte(Image img) |
| | | { |