From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期二, 30 八月 2022 09:37:38 +0800 Subject: [PATCH] 合并了IOS的代码 --- ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs b/ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs index b609fbf..d068161 100755 --- a/ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs +++ b/ZigbeeApp/Shared/Phone/ZigBee/Common/Config.cs @@ -123,6 +123,11 @@ { get { + if (Shared.Phone.UserCenter.HdlExperienceAccountLogic.Current.IsExperience == true) + { + //浣撻獙璐﹀彿鐨凾oken + return this.TokenExperience; + } string md5Password; if (string.IsNullOrEmpty(Password)) { @@ -141,6 +146,29 @@ return Convert.ToBase64String(tokenBytes).Replace("=", "%3D"); } + } + + /// <summary> + /// 浣撻獙璐﹀彿鐨凾oken + /// </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> -- Gitblit v1.8.0