pry 2 years ago
parent
commit
6bf706fa2c
2 changed files with 4 additions and 1 deletions
  1. +3
    -1
      BPASmartClient.IoT/DataVClient.cs
  2. +1
    -0
      BPASmartClient.ViewModel/MainViewModel.cs

+ 3
- 1
BPASmartClient.IoT/DataVClient.cs View File

@@ -99,7 +99,9 @@ namespace BPASmartClient.IoT
{
if (DeviceDataV != null && DeviceDataV.GetIsConnected() && DeviceDataV.deviceTable != null)
{
DeviceDataV.IOT_Publish(BroadcastPubTopic, Tools.JsonConvertTools("刷新店铺列表"));
string api = DataVApiAddress + "/api/Device/FlushedDevice";
HttpRequestHelper.HttpGetRequest(api, 1000);
//DeviceDataV.IOT_Publish(BroadcastPubTopic, Tools.JsonConvertTools("刷新店铺列表"));
}
}
catch (Exception ex)


+ 1
- 0
BPASmartClient.ViewModel/MainViewModel.cs View File

@@ -65,6 +65,7 @@ namespace BPASmartClient.ViewModel
}));
});


dispatcherTimer = new DispatcherTimer();
dispatcherTimer.Tick += delegate
{


Loading…
Cancel
Save