From 582b05b4b1616ae71360f362dfaf1345e2d682da Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 23 十一月 2022 14:22:01 +0800 Subject: [PATCH] 家庭光伏h5更新,大华摄像头更新 --- HDL_ON/DAL/Server/HttpServerRequest.cs | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs index 9726771..40e7cc3 100644 --- a/HDL_ON/DAL/Server/HttpServerRequest.cs +++ b/HDL_ON/DAL/Server/HttpServerRequest.cs @@ -2033,8 +2033,10 @@ d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); d.Add("productPlatform", productPlatform); d.Add("productBrand", productBrand); - if (productBrand != "MegaHealth") + if (productBrand == "MegaHealth" || productBrand == "IMOU") { + } + else { d.Add("networkConfig", true); } @@ -2078,6 +2080,21 @@ return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_IndependentRegister3TyDevcie, requestJson); } + /// <summary> + /// 鍒犻櫎绗笁鏂硅澶� + /// </summary> + /// <returns></returns> + public ResponsePackNew Delete3tyDevice(string deviceId) + { + + Dictionary<string, object> d = new Dictionary<string, object>(); + d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); + d.Add("deviceId", deviceId); + + var requestJson = HttpUtil.GetSignRequestJson(d); + var responsePackNew = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_Remove3tyDevcie, requestJson); + return responsePackNew; + } -- Gitblit v1.8.0