From 68da658e90864f503d97bc58a2a97f80d8e71065 Mon Sep 17 00:00:00 2001 From: tangxu <tangxu76880903> Date: 星期五, 12 四月 2024 10:52:03 +0800 Subject: [PATCH] 添加众毅 接口日志 --- WebApi/Controllers/TotalWaterInController.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WebApi/Controllers/TotalWaterInController.cs b/WebApi/Controllers/TotalWaterInController.cs index 842c951..3fa0bef 100644 --- a/WebApi/Controllers/TotalWaterInController.cs +++ b/WebApi/Controllers/TotalWaterInController.cs @@ -257,7 +257,7 @@ private string _url = "ws://192.168.201.17:40001"; - private async Task<List<RealScadaData>> Get(string inputJson) + private async Task<List<ZyModel.RealScadaData>> Get(string inputJson) { if (string.IsNullOrEmpty(inputJson)) return default; @@ -270,7 +270,7 @@ return default; } IStation.LogHelper.Info("ws.ConnectAsync"); - var realScadaDataList = new List<RealScadaData>(); + var realScadaDataList = new List<ZyModel.RealScadaData>(); var inputBytes = Encoding.UTF8.GetBytes(inputJson); await ws.SendAsync(new ArraySegment<byte>(inputBytes), WebSocketMessageType.Text, true, CancellationToken.None); try @@ -294,12 +294,12 @@ { foreach (var dict in scadaDict) { - var data = new RealScadaData(); + var data = new ZyModel.RealScadaData(); data.TagName = dict.Key; - data.MonitorRecords = new List<IStation.ZyDto.MonitorRecord>(); + data.MonitorRecords = new List<IStation.ZyModel.MonitorRecord>(); foreach (var item in dict.Value) { - var record = new IStation.ZyDto.MonitorRecord(); + var record = new IStation.ZyModel.MonitorRecord(); record.Time = item.Key; if (double.TryParse(item.Value, out double value)) { -- Gitblit v1.9.3