From 831b81a074177244359b61363944e32dcdc9c100 Mon Sep 17 00:00:00 2001 From: rszn <645583145@qq.com> Date: Mon, 24 Jun 2024 22:06:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Cloud/Client/CloudClient.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Service/Cloud/Client/CloudClient.cs b/Service/Cloud/Client/CloudClient.cs index 2ee592b..b3c6022 100644 --- a/Service/Cloud/Client/CloudClient.cs +++ b/Service/Cloud/Client/CloudClient.cs @@ -90,9 +90,9 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR public MsgPair VehicleData { get; set; } = new(); public MsgPair ChargeRecordUpLoad { get; set; } = new(); public MsgPair ChargeDevDataInfo { get; set; } = new(); - + public MsgPair PileEndCharge { get; set; } = new(); - + public MsgPair PileChargeRealtime { get; set; } = new(); public MsgPair PileRealtime { get; set; } = new(); @@ -267,7 +267,7 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR DateFormatString = "yyyy-MM-dd HH:mm:ss", NullValueHandling = NullValueHandling.Ignore }; - Log.Info(JsonConvert.SerializeObject(model, settings)); + Log.Info($"send {JsonConvert.SerializeObject(model, settings)}"); var appMsg = new MqttApplicationMessage { Topic = PubTopic, @@ -513,21 +513,21 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR this.Publish(req); return ChargeDevDataInfo.GetResp(timeSpan); } - + public PileEndChargeResp? SendPileEndCharge(PileEndCharge req, TimeSpan? timeSpan = null) { this.PileEndCharge.Req = req; this.Publish(req); return PileEndCharge.GetResp(timeSpan); } - + public PileChargeRealtimeResp? SendPileChargeRealtime(PileChargeRealtime req, TimeSpan? timeSpan = null) { this.PileChargeRealtime.Req = req; this.Publish(req); return PileChargeRealtime.GetResp(timeSpan); } - + public PileRealtimeResp? SendPileRealtime(PileRealtime req, TimeSpan? timeSpan = null) { this.PileRealtime.Req = req;