黄学彪
2020-11-19 9ef48d7b2da7c408b53f73be0f6eef3cbac1c84a
ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs
@@ -123,6 +123,11 @@
        {
            get
            {
                if (Shared.Phone.UserCenter.HdlExperienceAccountLogic.Current.IsExperience == true)
                {
                    //体验账号的Token
                    return this.TokenExperience;
                }
                string md5Password;
                if (string.IsNullOrEmpty(Password))
                {
@@ -141,6 +146,29 @@
                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>