From 017af840d60fd6a56da9711308bf8239cb7fc1e6 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 13 十一月 2020 11:01:01 +0800
Subject: [PATCH] 2020-11-13 1.部分接口替换备份
---
HDL_ON/Entity/UserInfo.cs | 56 +++++++++++++++++++++++++++++++-------------------------
1 files changed, 31 insertions(+), 25 deletions(-)
diff --git a/HDL_ON/Entity/UserInfo.cs b/HDL_ON/Entity/UserInfo.cs
index ebf358d..70800be 100644
--- a/HDL_ON/Entity/UserInfo.cs
+++ b/HDL_ON/Entity/UserInfo.cs
@@ -17,10 +17,25 @@
/// 鐢ㄦ埛
/// </summary>
public string accountString = "";
+ ///// <summary>
+ ///// 鐢ㄦ埛瀵嗙爜
+ ///// </summary>
+ //public string Password = "";
+ string aesPassword = "";
/// <summary>
- /// 鐢ㄦ埛瀵嗙爜
+ /// 鐢ㄦ埛瀵嗙爜
/// </summary>
- public string password = "";
+ public string password
+ {
+ get
+ {
+ return Shared.Securitys.EncryptionService.AesDecryptTopic(aesPassword, "85521566HDLONPRO");
+ }
+ set
+ {
+ aesPassword = Shared.Securitys.EncryptionService.AesEncryptTopic(value, "85521566HDLONPRO");
+ }
+ }
/// <summary>
/// 鐢ㄦ埛鎵嬫満鍙风爜
/// </summary>
@@ -32,7 +47,7 @@
/// <summary>
/// 鐢ㄦ埛ID
/// </summary>
- public int ID;
+ public string ID;
/// <summary>
/// 鐢ㄦ埛閫夋嫨鏄剧ず鐨勮瑷�
/// </summary>
@@ -41,7 +56,6 @@
/// 鐢ㄦ埛鍖哄煙
/// </summary>
public int areaCode = 86;
-
/// <summary>
/// 鐢ㄦ埛澶村儚鍥剧墖
/// </summary>
@@ -50,12 +64,10 @@
/// 鐢ㄦ埛澶村儚byte鏁版嵁
/// </summary>
public byte[] headImagePageBytes = null;
-
/// <summary>
/// 涓婁竴娆$櫥褰曟椂闂�
/// </summary>
public DateTime lastTime = DateTime.MinValue;
-
/// <summary>
/// 鏄惁鏄櫥褰曠姸鎬�
/// </summary>
@@ -66,24 +78,20 @@
return (DateTime.Now - lastTime).TotalDays < 7;
}
}
-
- public int accountType = 0;
-
- public int masterID = 0;
-
+ /// <summary>
+ ///
+ /// </summary>
public string loginTokenString;
- //{
- // get
- // {
- // var result = Encoding.UTF8.GetBytes(password);
- // var md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
- // var output = md5.ComputeHash(result);
- // var md5Password = BitConverter.ToString(output).Replace("-", "");
- // var account_md5Pssword = accountString + ":" + md5Password;
- // var tokenBytes = Encoding.UTF8.GetBytes(account_md5Pssword);
- // return Convert.ToBase64String(tokenBytes).Replace("=", "%3D");
- // }
- //}
+ /// <summary>
+ ///
+ /// </summary>
+ public string refreshToken;
+ /// <summary>
+ /// UserType B绔处鍙� C绔处鍙�
+ /// </summary>
+ public string userType = "C";
+
+
/// <summary>
/// 鐢ㄦ埛浣忓畢鍒楄〃
/// </summary>
@@ -93,8 +101,6 @@
{
FileUtils.WriteFileByBytes("UserInfo_File", Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this)));
}
-
-
private byte[] convertByte(Image img)
--
Gitblit v1.8.0