From 6a518151a9a8efb62c768198aebe4a0ff9ce77f2 Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期四, 21 十一月 2019 11:11:12 +0800 Subject: [PATCH] 2019-11-21-1 --- ZigbeeApp/Shared/Phone/Device/Logic/Send.cs | 19 +++++++++---------- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/Send.cs b/ZigbeeApp/Shared/Phone/Device/Logic/Send.cs index a105796..0cce7a7 100644 --- a/ZigbeeApp/Shared/Phone/Device/Logic/Send.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/Send.cs @@ -467,6 +467,7 @@ { ["Type"] = int.Parse(dictionary["Type"]), ["Account"] = dictionary["Account"], + ["UserId"] = dictionary["UserId"], }; accounts.Add(accounts1); @@ -715,7 +716,7 @@ #endregion #region ----鑾峰彇闂ㄩ攣 - + /// <summary> /// 鑾峰彇鑷繁+鍏朵粬鎴愬憳淇℃伅 /// </summary> @@ -728,13 +729,13 @@ var AllUserIfon = await ReadUserListIfon(doorlockMac); var currUserIfon = new MembershipIfon(); currUserIfon.CloudAccountId = Config.Instance.Guid; - if (string.IsNullOrEmpty(Config.Instance.UserName)) + if (string.IsNullOrEmpty(UserCenter.UserCenterResourse.UserInfo.UserName)) { - currUserIfon.UserName = Config.Instance.Account; + currUserIfon.UserName = UserCenter.UserCenterResourse.UserInfo.Account; } else { - currUserIfon.UserName = Config.Instance.UserName; + currUserIfon.UserName = UserCenter.UserCenterResourse.UserInfo.UserName; } foreach (var o in AllUserIfon) { @@ -841,7 +842,7 @@ public static async System.Threading.Tasks.Task<string> ReadUserList(string doorlockMac) { - string s = null; + string s = null; var str = await WebClientAsync(0, CommonPage.RequestHttpsHost+"/App/GetHomePager");//涓嶅悓鍖哄煙鍩熷悕鍓嶇紑涓嶄竴鏍� // var str = await WebClientAsync(0, "https://global.hdlcontrol.com/HangZhouHdlCloudApi/App/GetHomePager"); var jObject = JObject.Parse(str); @@ -886,7 +887,7 @@ } return s; } - + public static async System.Threading.Tasks.Task<string> ReadUserDoorLock(Residential residential) { @@ -931,7 +932,7 @@ postValues.Add("RequestVersion", CommonPage.RequestVersion); postValues.Add("LoginAccessToken", Config.Instance.Token); postValues.Add("MainAccountId", residential.MainUserDistributedMark); - postValues.Add("SharedHid", residential.Id); + postValues.Add("SharedHid", residential.Id); } else if (value == 2) { @@ -972,7 +973,7 @@ public string doorlockmac; } - public class MembershipIfon + public class MembershipIfon { /// <summary> /// 璇嗗埆鐢ㄦ埛韬唤 @@ -1036,12 +1037,10 @@ } - /// <summary> /// 闂ㄩ攣鍒楄〃 /// </summary> public static List<MembershipIfon> LockList = new List<MembershipIfon>(); - /// <summary> /// 褰撳墠闂ㄩ攣 /// </summary> -- Gitblit v1.8.0