|
@@ -812,8 +812,8 @@ namespace EVCB_OCPP.WSServer
|
|
|
OutRequest = JsonConvert.SerializeObject(
|
|
|
new ChangeConfigurationRequest()
|
|
|
{
|
|
|
- key= "TimeOffset",
|
|
|
- value= "+08:00"
|
|
|
+ key = "TimeOffset",
|
|
|
+ value = "+08:00"
|
|
|
|
|
|
},
|
|
|
new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore, Formatting = Formatting.None }),
|
|
@@ -1513,7 +1513,7 @@ namespace EVCB_OCPP.WSServer
|
|
|
|
|
|
if (min_Interval > 30)
|
|
|
{
|
|
|
- // Console.WriteLine("in...............ServerWeatherNotificationTrigger");
|
|
|
+ // Console.WriteLine("in...............ServerWeatherNotificationTrigger");
|
|
|
BasicMessageHandler msgAnalyser = new BasicMessageHandler();
|
|
|
Dictionary<string, ClientData> _copyClientDic = null;
|
|
|
lock (_lockClientDic)
|
|
@@ -1839,6 +1839,56 @@ namespace EVCB_OCPP.WSServer
|
|
|
client.Currency = stationPrice.Currency;
|
|
|
client.ParkingFee = stationPrice.ParkingFee;
|
|
|
client.IsBilling = true;
|
|
|
+
|
|
|
+
|
|
|
+ if (client.CustomerId == new Guid("009E603C-79CD-4620-A2B8-D9349C0E8AD8"))
|
|
|
+ {
|
|
|
+ if (displayPriceText.StartsWith("AC") || displayPriceText.StartsWith("DC"))
|
|
|
+ {
|
|
|
+
|
|
|
+ if (client.ChargeBoxId.StartsWith("D"))
|
|
|
+ {
|
|
|
+
|
|
|
+ var unitWords = displayPriceText.Split(';').ToList();
|
|
|
+ int dcIndex = unitWords.FindIndex(x => x.Contains("DC"));
|
|
|
+ displayPriceText = unitWords[dcIndex].Replace("DC:", "");
|
|
|
+ var priceText = displayPriceText.Split('$')[1].TrimStart(' ').Split('/')[0]; ;
|
|
|
+ var dc_UnitPrice = int.Parse(priceText);
|
|
|
+ client.ChargingPrices = new List<ChargingPrice>()
|
|
|
+ {
|
|
|
+ new ChargingPrice()
|
|
|
+ {
|
|
|
+ EndTime="23:59",
|
|
|
+ StartTime="00:00",
|
|
|
+ Fee=dc_UnitPrice
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ var unitWords = displayPriceText.Split(';').ToList();
|
|
|
+ int dcIndex = unitWords.FindIndex(x => x.Contains("AC"));
|
|
|
+ displayPriceText = unitWords[dcIndex].Replace("AC:", "");
|
|
|
+ var priceText = displayPriceText.Split('$')[1].TrimStart(' ').Split('/')[0]; ;
|
|
|
+ var ac_UnitPrice = int.Parse(priceText);
|
|
|
+ client.ChargingPrices = new List<ChargingPrice>()
|
|
|
+ {
|
|
|
+ new ChargingPrice()
|
|
|
+ {
|
|
|
+ EndTime="23:59",
|
|
|
+ StartTime="00:00",
|
|
|
+ Fee=ac_UnitPrice
|
|
|
+ }
|
|
|
+ };
|
|
|
+ Console.WriteLine("Chargeboxid=>" + client.ChargeBoxId);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return displayPriceText;
|