From 07b0239f824ddb5a0cadf93f20ff6247f72baca2 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期三, 19 一月 2022 11:32:03 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/wxr0114' into wjc --- HDL_ON/DAL/DriverLayer/Control.cs | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs index 3eafb36..17cc7b5 100644 --- a/HDL_ON/DAL/DriverLayer/Control.cs +++ b/HDL_ON/DAL/DriverLayer/Control.cs @@ -26,7 +26,7 @@ public class Control { - + static Control _control; public static Control Ins { @@ -754,7 +754,7 @@ //2.Body瀛楃涓茶浆涓篵yte鏁扮粍 byte[] bodyBytes = Encoding.UTF8.GetBytes(bodyDataString); //鍒ゆ柇鏄惁闇�鍔犲瘑Body鏁版嵁 - //if (isEncryption && IsLocalEncryptAndGetAesKey) + if (isEncryption && IsLocalEncryptAndGetAesKey) { bodyBytes = Securitys.EncryptionService.AesEncryptPayload(bodyBytes, DB_ResidenceData.Instance.CurrentRegion.localSecret); //bodyDataString = Encoding.UTF8.GetString(bodyBytes); @@ -769,8 +769,8 @@ topicAndLengthBytes.CopyTo(sendDataBytes, 0); bodyBytes.CopyTo(sendDataBytes, topicAndLengthBytes.Length); - //var sendDataString = Encoding.UTF8.GetString(sendDataBytes); - //MainPage.Log($"杞崲HDL-Link鏁版嵁\r\n{sendDataString}\r\n"); + var sendDataString = Encoding.UTF8.GetString(sendDataBytes); + MainPage.Log($"杞崲HDL-Link鏁版嵁\r\n{sendDataString}\r\n"); //*************************************************************** return sendDataBytes; @@ -866,7 +866,7 @@ if (receiveObj.Topic == CommunicationTopic.SearchLoaclGatewayReply || receiveObj.Topic == CommunicationTopic.GatewayBroadcast) { - + var bodyJObj = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePack>(res[1]); if (bodyJObj == null) { @@ -980,7 +980,6 @@ var localFunction = allLocalFuntion.Find((obj) => obj.sid == updateTemp.sid); if (localFunction == null) { - MainPage.Log("鎵句笉鍒伴煶涔愭挱鏀惧櫒娣�=======" + revString); continue; } MainPage.Log(localFunction.name); @@ -1245,4 +1244,4 @@ #endregion } -} \ No newline at end of file +} -- Gitblit v1.8.0