From 979261237701f82349b2fce1a0cfe7e5db8436be Mon Sep 17 00:00:00 2001 From: smartwyy <645583145@qq.com> Date: Tue, 28 May 2024 20:29:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E9=85=8D=E7=BD=AE=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=85=85=E7=94=B5=E5=8A=9F=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Charger/Client/ChargerClient.cs | 3 ++- Service/Init/StaticStationInfo.cs | 6 ++++++ Service/Station/StationParamConst.cs | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Service/Charger/Client/ChargerClient.cs b/Service/Charger/Client/ChargerClient.cs index d351fbf..2df4680 100644 --- a/Service/Charger/Client/ChargerClient.cs +++ b/Service/Charger/Client/ChargerClient.cs @@ -426,7 +426,8 @@ public class ChargerClient : TcpClient redisHelper.SetKeyValueStr($"chargeNo{BinNo}Start", DateTime.Now.ToString("f"), TimeSpan.FromMinutes(1)); byte chargeSoc = StaticStationInfo.ChargeSoc; - string chargeOrderNo = SendRemoteStartCharging(chargeSoc); + float chargePower = StaticStationInfo.ChargePower; + string chargeOrderNo = SendRemoteStartCharging(chargeSoc, chargePower); _chargeOrderRepository.Insert(new ChargeOrder() { diff --git a/Service/Init/StaticStationInfo.cs b/Service/Init/StaticStationInfo.cs index ddfa8f0..ec3f013 100644 --- a/Service/Init/StaticStationInfo.cs +++ b/Service/Init/StaticStationInfo.cs @@ -94,6 +94,12 @@ public class StaticStationInfo get => byte.Parse(Resolve(StationParamConst.ChargeSoc)); set => Set(StationParamConst.ChargeSoc, value); } + + public static float ChargePower + { + get => float.Parse(Resolve(StationParamConst.ChargePower)); + set => Set(StationParamConst.ChargeSoc, value); + } /// /// 0-关闭 1-开启 diff --git a/Service/Station/StationParamConst.cs b/Service/Station/StationParamConst.cs index c4434e6..74fd343 100644 --- a/Service/Station/StationParamConst.cs +++ b/Service/Station/StationParamConst.cs @@ -189,6 +189,7 @@ public class StationParamConst //充电soc public static readonly string ChargeSoc = "Station.ChargeSoc"; + public static readonly string ChargePower = "Station.ChargePower"; public static readonly string AutoChargeEnabled = "Station.AutoChargeEnabled"; public static readonly string Eid = "Station.Eid"; public static readonly string Oid = "Station.Oid";