From 6d12a9deff8fd47db46fec9e938857139873819e Mon Sep 17 00:00:00 2001 From: "LAPTOP-C3BH1AET\\wangj" Date: Wed, 17 Jul 2024 14:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WcfControlMonitorLib/SampleModule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WcfControlMonitorLib/SampleModule.cs b/WcfControlMonitorLib/SampleModule.cs index 2d71c95..6272fbe 100644 --- a/WcfControlMonitorLib/SampleModule.cs +++ b/WcfControlMonitorLib/SampleModule.cs @@ -66,10 +66,11 @@ namespace WcfControlMonitorLib byte[] data = new byte[length]; body.Read(data, 0, length); string jsonStr = Encoding.UTF8.GetString(data); + //JObject json = JsonConvert.DeserializeObject(jsonStr); //Dictionary json = JsonConvert.DeserializeObject>(jsonStr); - WCS_STORAGE jsonObject = JsonConvert.DeserializeObject(jsonStr); + // 定义一个 JSON 键值对对象 //Dictionary jsonObject1 = new Dictionary(); //// 添加键值对,品种1.2.3.4.5 db区及设备号 @@ -134,7 +135,6 @@ namespace WcfControlMonitorLib } - public class WCS_STORAGE { public List storage { get; set; }