From e22e6699a4ec73e81f45526eb8249379963e22d7 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 14 九月 2022 13:49:05 +0800 Subject: [PATCH] 光伏更新 --- HDL_ON/Common/ApiUtlis.cs | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs index c618e15..10b28ef 100644 --- a/HDL_ON/Common/ApiUtlis.cs +++ b/HDL_ON/Common/ApiUtlis.cs @@ -433,6 +433,37 @@ } }) { IsBackground = true }.Start(); + + + + + //涓嬭浇鍏変紡鏁版嵁 + new System.Threading.Thread(() => { + try + { + HttpServerRequest http = new HttpServerRequest(); + var packData = http.GetInverterList(); + if (packData != null) + { + if (packData.Code == StateCode.SUCCESS) + { + var inverterList = JsonConvert.DeserializeObject<List<InverterInfo>>(packData.Data.ToString()); + if (inverterList!= null) + { + FunctionList.List.InverterList = inverterList; + } + } + } + } + catch (Exception ex) + { + MainPage.Log($"璇诲彇鍏変紡鏁版嵁寮傚父:{ex.Message}"); + } + + }) { IsBackground = true }.Start(); + + + } /// <summary> -- Gitblit v1.8.0