From 8b9b6c4028a6ce1c8a90c531e8632725baa47e2e Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 30 三月 2023 13:35:28 +0800 Subject: [PATCH] 2023年03月30日13:35:03 --- HDL_ON/DAL/Server/HttpServerRequest.cs | 24 ++++++++++++++++++++---- 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs index 3b85c15..449da8d 100644 --- a/HDL_ON/DAL/Server/HttpServerRequest.cs +++ b/HDL_ON/DAL/Server/HttpServerRequest.cs @@ -546,7 +546,6 @@ { if (DB_ResidenceData.Instance.CurrentRegion.id != "") { - DB_ResidenceData.Instance.CurrentRegion = null; Shared.Application.RunOnMainThread(() => { MainPage.GoUserPage(false); @@ -2929,9 +2928,25 @@ } -#endregion + /// <summary> + /// 鑾峰彇绗笁鏂规敞鍐岀殑id + /// </summary> + /// <param homeId="homeId">浣忓畢id</param> + /// <returns></returns> + public ResponsePackNew GetExtUserId(string homeId) + { + Dictionary<string, object> d = new Dictionary<string, object>(); + d.Add("homeId", homeId); -#region 鈻� 闂ㄩ攣鐩稿叧____________________________ + var requestJson = HttpUtil.GetSignRequestJson(d); + var pack = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetExtUserId, requestJson); + + return pack; + } + + #endregion + + #region 鈻� 闂ㄩ攣鐩稿叧____________________________ /// <summary> /// 鑾峰彇闂ㄩ攣鍘嗗彶璁板綍(鎸夋棩鏈熼檷搴�) @@ -3195,11 +3210,12 @@ /// </summary> /// <param name="spk"></param> /// <returns></returns> - public ResponsePackNew AddGroupControl() + public ResponsePackNew AddGroupControl(List<GroupControl> groupControls) { Dictionary<string, object> d = new Dictionary<string, object>(); d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); d.Add("gatewayId", DB_ResidenceData.Instance.HomeGateway.gatewayId); + d.Add("infos", groupControls); var requestJson = HttpUtil.GetSignRequestJson(d); var pack = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetGroupControlListByHome, requestJson); return pack; -- Gitblit v1.8.0