Browse Source

add signature debug

Robert 1 year ago
parent
commit
619cddffd0

+ 3 - 1
EVCB_OCPP.TaskScheduler/OuterHttpClient.cs

@@ -124,8 +124,10 @@ namespace EVCB_OCPP.TaskScheduler
         {
             var _body = requestBody == null ? "" : requestBody;
             headers.Add("Timestamp", DateTimeOffset.UtcNow.ToUnixTimeSeconds().ToString());
-            string signature = GetSignature(GetUnencodeText(url, _body, headers["Timestamp"], headers["PartnerId"], saltkey));
+            var rawSignature = GetUnencodeText(url, _body, headers["Timestamp"], headers["PartnerId"], saltkey);
+            string signature = GetSignature(rawSignature);
             headers.Add("Signature", signature);
+            logger.Debug("rawSignature: {0}; Signature: {1}", rawSignature, signature);
 
             return _body;
         }

+ 4 - 4
EVCB_OCPP.TaskScheduler/Properties/AssemblyInfo.cs

@@ -31,7 +31,7 @@ using System.Runtime.InteropServices;
 //
 // 您可以指定所有的值,或將組建編號或修訂編號設為預設值
 // 指定為預設值: 
-// [assembly: AssemblyVersion("1.1.1.0")]
-[assembly: AssemblyVersion("1.1.1.0")]
-[assembly: AssemblyFileVersion("1.1.1.0")]
-[assembly: AssemblyInformationalVersion("808811c")]
+// [assembly: AssemblyVersion("1.3.1.0")]
+[assembly: AssemblyVersion("1.3.1.0")]
+[assembly: AssemblyFileVersion("1.3.1.0")]
+[assembly: AssemblyInformationalVersion("7995ef7")]