| | |
| | | { |
| | | get |
| | | { |
| | | if (Shared.Phone.UserCenter.HdlExperienceAccountLogic.Current.IsExperience == true)
|
| | | {
|
| | | //体验账号的Token
|
| | | return this.TokenExperience;
|
| | | } |
| | | string md5Password; |
| | | if (string.IsNullOrEmpty(Password)) |
| | | { |
| | |
| | | return Convert.ToBase64String(tokenBytes).Replace("=", "%3D"); |
| | | } |
| | | |
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 体验账号的Token
|
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | private string m_TokenExperience = null;
|
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public string TokenExperience
|
| | | {
|
| | | get
|
| | | {
|
| | | if (m_TokenExperience != null) { return m_TokenExperience; }
|
| | |
|
| | | var result = System.Text.Encoding.UTF8.GetBytes("123456");
|
| | | var md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
|
| | | var output = md5.ComputeHash(result);
|
| | | var md5Password = BitConverter.ToString(output).Replace("-", "");
|
| | | var account_md5Pssword = "ceyir277@163.com:" + md5Password; |
| | | var tokenBytes = System.Text.Encoding.UTF8.GetBytes(account_md5Pssword); |
| | | m_TokenExperience = Convert.ToBase64String(tokenBytes).Replace("=", "%3D");
|
| | | return m_TokenExperience;
|
| | | }
|
| | | } |
| | | |
| | | /// <summary>
|