wxr
2022-10-18 6692d867a0876b014be3cbd64bc3a237a026dc2d
HDL_ON/DAL/Server/HttpServerRequest.cs
@@ -205,8 +205,6 @@
        }
        #region 注册、登录部分
        /// <summary>
        /// 通用 发送验证码方法
        /// </summary>
@@ -551,7 +549,7 @@
                {
                    foreach (var home in homeList)
                    {
                        if (home.isBindGateway)
                        if (home.isBindGateway)//是否绑定网关
                        {
                            UserInfo.Current.regionList.Add(home);
                            //新绑定的住宅,直接切换到新住宅
@@ -1373,6 +1371,9 @@
        /// </summary>
        public void GetCityWeatherInfo(string lon, string lat)
        {
            MainPage.cityInfo.lon = lon;
            MainPage.cityInfo.lat = lat;
            System.Threading.Tasks.Task.Run(() =>
            {
                while (true)
@@ -1414,7 +1415,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 +3006,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
    }