From d1ab259186e2341a0839c87300065e9bb5f14e9c Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期二, 12 十一月 2019 10:42:14 +0800
Subject: [PATCH] 2019.11.12

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterCommon.cs |  100 +++++++++++---------------------------------------
 1 files changed, 22 insertions(+), 78 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterCommon.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterCommon.cs
index 24756d1..5004d73 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterCommon.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterCommon.cs
@@ -1,4 +1,5 @@
-锘縰sing System;
+锘縰sing Shared.Common;
+using System;
 using System.Collections.Generic;
 
 namespace Shared.Phone.UserCenter
@@ -59,7 +60,17 @@
         /// <summary>
         /// 鐢ㄦ埛鍥炬爣鏂囦欢
         /// </summary>
+        [Newtonsoft.Json.JsonIgnore]
         public string UserIconFile = string.Empty;
+        /// <summary>
+        /// 鐢ㄦ埛鍥炬爣鏂囦欢鏄惁鏀瑰彉
+        /// </summary>
+        [Newtonsoft.Json.JsonIgnore]
+        public bool UserIconFileChanged = false;
+        /// <summary>
+        /// 鐢ㄦ埛澶村儚鏁版嵁
+        /// </summary>
+        public byte[] HeadImage = null;
     }
 
     /// <summary>
@@ -890,17 +901,21 @@
     public class MemberShardInfoData
     {
         /// <summary>
-        /// 鎴愬憳鐨勫叏閮ㄥ垎浜暟鎹�,閲岄潰鍖呭惈鎵�鏈夌殑鏂囦欢(keys:鎴块棿鏂囦欢鍚�  value:鏂囦欢鍚�)
-        /// </summary>
-        public Dictionary<string, HashSet<string>> dicAllMemberShard = new Dictionary<string, HashSet<string>>();
-        /// <summary>
         /// 鍏ㄩ儴鐨勫垎浜枃浠剁殑涓婚敭(keys:鏂囦欢鍚�  value:涓婚敭)
         /// </summary>
         public Dictionary<string, string> dicAllShardKeys = new Dictionary<string, string>();
         /// <summary>
-        /// 鍒嗕韩鎴块棿鐨勫璞�(瀹冩槸浠庝簯绔潵鐨�)
+        /// 鍒嗕韩鎴块棿鐨勫璞�(瀹冩槸浠庝簯绔潵鐨�,keys:鏂囦欢鍚�)
         /// </summary>
-        public Dictionary<string, Common.Room> dicShardRoom = new Dictionary<string, Common.Room>();
+        public Dictionary<string, Room> dicShardRoom = new Dictionary<string, Common.Room>();
+        /// <summary>
+        /// 鍒嗕韩鐨勬ゼ灞�
+        /// </summary>
+        public Dictionary<string, string> dicShardFloor = new Dictionary<string, string>();
+        /// <summary>
+        /// 涓存椂鍙橀噺(杩欎釜涓滆タ涓簄ull,鍗充笉鏄柊鍒嗕韩鐨勬埧闂�,鍚﹀垯鏄柊鍒嗕韩鐨勬埧闂淬�傜敤瀹岃寰楃疆绌�)
+        /// </summary>
+        public Room TempRoom = null;
         /// <summary>
         /// 鏄惁闇�瑕佸埛鏂�
         /// </summary>
@@ -982,77 +997,6 @@
         /// 搴旇鍙繙绋嬭繛鎺ョ殑鍚嶅瓧鍚�
         /// </summary>
         public string ConnectZigbeeMqttBrokerName = string.Empty;
-    }
-
-    #endregion
-
-    #region 鈻� 璐﹀彿璁剧疆绫籣_________________________
-
-    /// <summary>
-    /// 璐﹀彿璁剧疆淇℃伅
-    /// </summary>
-    public class AccountOption
-    {
-        /// <summary>
-        /// 鏄惁浣跨敤鎸囩汗楠岃瘉
-        /// </summary>
-        public bool FingerprintAuthentication = false;
-        /// <summary>
-        /// 瀵嗙爜楠岃瘉
-        /// </summary>
-        public string PswAuthentication = string.Empty;
-        /// <summary>
-        /// 鎵嬪娍楠岃瘉
-        /// </summary>
-        public string GestureAuthentication = string.Empty;
-        /// <summary>
-        /// 鏄惁浣跨敤杩滅▼寮�閿�
-        /// </summary>
-        public bool DoorUnLockByRemote = false;
-        /// <summary>
-        /// 淇濆瓨
-        /// </summary>
-        public void Save()
-        {
-            //鍔犲瘑瀵嗙爜
-            string hdlKey = "hD1(La3o";
-            string oldPswAuthentication = PswAuthentication;
-            PswAuthentication = UserCenterLogic.EncryptPassword(hdlKey, oldPswAuthentication);
-            
-            string oldGestureAuthentication = GestureAuthentication;
-            GestureAuthentication = UserCenterLogic.EncryptPassword(hdlKey, oldGestureAuthentication);
-
-            var data = Newtonsoft.Json.JsonConvert.SerializeObject(this);
-            var byteData = System.Text.Encoding.UTF8.GetBytes(data);
-            string fullName = System.IO.Path.Combine(Shared.IO.FileUtils.RootPath, Common.Config.Instance.Guid, DirNameResourse.AccountOptionFile);
-            //鍐欏叆鍐呭
-            Shared.IO.FileUtils.WriteFileByBytes(fullName, byteData);
-            //杩樺師鏄庣爜
-            PswAuthentication = oldPswAuthentication;
-            GestureAuthentication = oldGestureAuthentication;
-        }
-
-        /// <summary>
-        /// 鍔犺浇鏁版嵁
-        /// </summary>
-        /// <returns></returns>
-        public AccountOption Load()
-        {
-            string fileName = System.IO.Path.Combine(Shared.IO.FileUtils.RootPath, Common.Config.Instance.Guid, DirNameResourse.AccountOptionFile);
-            if (System.IO.File.Exists(fileName) == false)
-            {
-                return new AccountOption();
-            }
-            var varByte = Shared.IO.FileUtils.ReadFile(fileName);
-            string strValue = System.Text.Encoding.UTF8.GetString(varByte);
-            var info = Newtonsoft.Json.JsonConvert.DeserializeObject<AccountOption>(strValue);
-            //瑙e瘑瀵嗙爜
-            string hdlKey = "hD1(La3o";
-            info.PswAuthentication = UserCenterLogic.DecryptPassword(hdlKey, info.PswAuthentication);
-            info.GestureAuthentication = UserCenterLogic.DecryptPassword(hdlKey, info.GestureAuthentication);
-
-            return info;
-        }
     }
 
     #endregion

--
Gitblit v1.8.0