瀏覽代碼

Fix Auth 兼容 ChargepointFee & ChargePointFee

Jessica Tseng 2 年之前
父節點
當前提交
f9f2942721
共有 2 個文件被更改,包括 12 次插入1 次删除
  1. 1 1
      EVCB_OCPP.WSServer/Properties/AssemblyInfo.cs
  2. 11 0
      EVCB_OCPP.WSServer/Service/OuterBusinessService.cs

+ 1 - 1
EVCB_OCPP.WSServer/Properties/AssemblyInfo.cs

@@ -35,4 +35,4 @@ using System.Runtime.InteropServices;
 [assembly: AssemblyVersion("1.0.5.0")]
 [assembly: AssemblyFileVersion("1.0.5.0")]
 
-[assembly: AssemblyInformationalVersion("1d33e44")]
+[assembly: AssemblyInformationalVersion("f9b64a5")]

+ 11 - 0
EVCB_OCPP.WSServer/Service/OuterBusinessService.cs

@@ -110,6 +110,17 @@ namespace EVCB_OCPP.WSServer.Service
                      
                     }
 
+                    if (jo.ContainsKey("ChargepointFee"))
+                    {
+                        result.ChargePointFee = new List<ChargePointFee>();
+
+                        for (int i = 0; i < jo["ChargepointFee"].Count(); i++)
+                        {
+                            result.ChargePointFee.Add(jo["ChargepointFee"][i].ToObject<ChargePointFee>());
+                        }
+
+                    }
+
                     if (jo.ContainsKey("AccountBalance"))
                     {
                         decimal accountBalance = jo["AccountBalance"].Value<decimal>();