From 689dd676fc0efb31236d989334122590b7198d61 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期一, 16 三月 2026 09:30:11 +0800
Subject: [PATCH] 1

---
 Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Entities/InstanceConfig.cs |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Entities/InstanceConfig.cs b/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Entities/InstanceConfig.cs
index f3003bc..bdd057c 100644
--- a/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Entities/InstanceConfig.cs
+++ b/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Entities/InstanceConfig.cs
@@ -1,4 +1,4 @@
-using Newtonsoft.Json;
+using System.Text.Json.Serialization;
 using WIDESEAWCS_S7Simulator.Core.Enums;
 
 namespace WIDESEAWCS_S7Simulator.Core.Entities
@@ -11,43 +11,43 @@
         /// <summary>
         /// 瀹炰緥鍞竴鏍囪瘑
         /// </summary>
-        [JsonProperty("id")]
+        //[JsonPropertyName("id")]
         public string Id { get; set; } = string.Empty;
 
         /// <summary>
         /// 瀹炰緥鍚嶇О
         /// </summary>
-        [JsonProperty("name")]
+        //[JsonPropertyName("name")]
         public string Name { get; set; } = string.Empty;
 
         /// <summary>
         /// PLC鍨嬪彿
         /// </summary>
-        [JsonProperty("plcType")]
+        //[JsonPropertyName("plcType")]
         public SiemensPLCType PLCType { get; set; }
 
         /// <summary>
         /// 鐩戝惉绔彛
         /// </summary>
-        [JsonProperty("port")]
+        //[JsonPropertyName("port")]
         public int Port { get; set; }
 
         /// <summary>
         /// HSL婵�娲荤爜
         /// </summary>
-        [JsonProperty("activationKey")]
+        [JsonPropertyName("activationKey")]
         public string ActivationKey { get; set; } = string.Empty;
 
         /// <summary>
         /// 鏄惁鑷姩鍚姩
         /// </summary>
-        [JsonProperty("autoStart")]
+        [JsonPropertyName("autoStart")]
         public bool AutoStart { get; set; }
 
         /// <summary>
         /// 鍐呭瓨鍖哄煙閰嶇疆
         /// </summary>
-        [JsonProperty("memoryConfig")]
+        [JsonPropertyName("memoryConfig")]
         public MemoryRegionConfig MemoryConfig { get; set; } = new();
     }
 }

--
Gitblit v1.9.3