From 39cf2411b59772d56ee731f229f09ff472889bad Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期四, 22 九月 2022 15:12:04 +0800 Subject: [PATCH] Merge branch 'Dev-Branch' into hxb --- HDL_ON/DAL/Server/HttpServerRequest.cs | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs index 1bf4aaf..6d90181 100644 --- a/HDL_ON/DAL/Server/HttpServerRequest.cs +++ b/HDL_ON/DAL/Server/HttpServerRequest.cs @@ -551,7 +551,7 @@ { foreach (var home in homeList) { - if (home.isBindGateway) + if (home.isBindGateway)//鏄惁缁戝畾缃戝叧 { UserInfo.Current.regionList.Add(home); //鏂扮粦瀹氱殑浣忓畢锛岀洿鎺ュ垏鎹㈠埌鏂颁綇瀹� @@ -1414,7 +1414,7 @@ MainPage.cityInfo.weather = jt.GetValue("Weather").ToString(); MainPage.cityInfo.lowestTemperature = jt.GetValue("lowestTemperature").ToString(); MainPage.cityInfo.highestTemperature = jt.GetValue("highestTemperature").ToString(); - + MainPage.CityWeatherAction?.Invoke(); break; } catch (Exception ex) @@ -3005,6 +3005,18 @@ var pack = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetInverter_List, requestJson); return pack; } + /// <summary> + /// 鑾峰彇浣忓畢涓嬪厜浼忕粺璁$殑鏁版嵁 + /// </summary> + /// <returns></returns> + public ResponsePackNew GetInverterStatisticsInfo() + { + Dictionary<string, object> d = new Dictionary<string, object>(); + d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); + var requestJson = HttpUtil.GetSignRequestJson(d); + var pack = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetInverter_StatisticsInfo, requestJson); + return pack; + } #endregion } -- Gitblit v1.8.0