From fc97cf8a64632af4f208029030629cf8b7b4d21e Mon Sep 17 00:00:00 2001 From: fyf Date: Thu, 26 May 2022 16:10:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BPASmartClient.ViewModel/DataVViewModel.cs | 3 ++- BPASmartClient.ViewModel/LogOrAlarmIOTViewModel.cs | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/BPASmartClient.ViewModel/DataVViewModel.cs b/BPASmartClient.ViewModel/DataVViewModel.cs index ea988f98..f5732291 100644 --- a/BPASmartClient.ViewModel/DataVViewModel.cs +++ b/BPASmartClient.ViewModel/DataVViewModel.cs @@ -1,4 +1,5 @@  +using BPASmartClient.Business; using BPASmartClient.Helper; using BPASmartClient.IoT; using DataVAPI.Tool.IOT; @@ -22,7 +23,7 @@ namespace BPASmartClient.ViewModel deviceTable = new ObservableCollection(); device = new DeviceTable(); deviceTableSelectedItem = new DeviceTable(); - ApiURL = System.Configuration.ConfigurationManager.AppSettings["DataVServiceUri"].ToString(); + ApiURL = InternetInfo.DataVApiAddress; Refresh(); } #endregion diff --git a/BPASmartClient.ViewModel/LogOrAlarmIOTViewModel.cs b/BPASmartClient.ViewModel/LogOrAlarmIOTViewModel.cs index 9d059bd4..323b49ff 100644 --- a/BPASmartClient.ViewModel/LogOrAlarmIOTViewModel.cs +++ b/BPASmartClient.ViewModel/LogOrAlarmIOTViewModel.cs @@ -1,4 +1,5 @@ -using BPASmartClient.CustomResource.UserControls; +using BPASmartClient.Business; +using BPASmartClient.CustomResource.UserControls; using BPASmartClient.CustomResource.UserControls.MessageShow; using BPASmartClient.Helper; using BPASmartClient.IoT; @@ -51,7 +52,7 @@ namespace BPASmartClient.ViewModel #region 函数 public void Init() { - DataVApiAddress = System.Configuration.ConfigurationManager.AppSettings["DataVServiceUri"].ToString(); + DataVApiAddress = InternetInfo.DataVApiAddress; LogDataFile = new ObservableCollection(); //查询