| | |
| | | } |
| | | |
| | | #region 注册、登录部分 |
| | | |
| | | |
| | | /// <summary> |
| | | /// 通用 发送验证码方法 |
| | | /// </summary> |
| | |
| | | /// </summary> |
| | | public void GetCityWeatherInfo(string lon, string lat) |
| | | { |
| | | MainPage.cityInfo.lon = lon; |
| | | MainPage.cityInfo.lat = lat; |
| | | |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | while (true) |
| | |
| | | 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 |
| | | |
| | | } |