wxr
2023-03-28 1dfc4324f2ce375b79da1021e50417023e6b2da9
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);
@@ -3195,11 +3194,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;