From 7d94137b44a786cd30695fbf0f58913afaedfe2c Mon Sep 17 00:00:00 2001 From: yubaolee Date: Sun, 30 Nov 2025 21:27:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Bfix:=20=E4=BF=AE=E5=A4=8D=E5=8A=A8?= =?UTF-8?q?=E6=80=81API=E5=A4=A7=E5=B0=8F=E5=86=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.App/DynamicApiApp/DynamicApiApp.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/OpenAuth.App/DynamicApiApp/DynamicApiApp.cs b/OpenAuth.App/DynamicApiApp/DynamicApiApp.cs index d5a4ab5a..00ede354 100644 --- a/OpenAuth.App/DynamicApiApp/DynamicApiApp.cs +++ b/OpenAuth.App/DynamicApiApp/DynamicApiApp.cs @@ -8,7 +8,6 @@ using OpenAuth.App.Response; using SqlSugar; using OpenAuth.App.Request; using Microsoft.Extensions.Logging; -using Newtonsoft.Json; namespace OpenAuth.App { @@ -209,7 +208,7 @@ namespace OpenAuth.App } // 将对象转换为字典(使用大小写不敏感的反序列化) - var rawDict = JsonConvert.DeserializeObject>(req.Obj); + var rawDict = JsonHelper.Instance.Deserialize>(req.Obj); var dict = ToIgnoreCaseDict(rawDict); // 设置ID(大小写不敏感检查) @@ -282,7 +281,7 @@ namespace OpenAuth.App } // 将对象转换为字典(使用大小写不敏感的反序列化) - var rawDict = JsonConvert.DeserializeObject>(req.Obj); + var rawDict = JsonHelper.Instance.Deserialize>(req.Obj); var dict = ToIgnoreCaseDict(rawDict); // 检查ID是否存在(大小写不敏感) @@ -462,7 +461,7 @@ namespace OpenAuth.App var json = request.Parameters; // 解析完整的JSON对象(使用大小写不敏感的字典) - var jsonObj = JsonConvert.DeserializeObject>(json); + var jsonObj = JsonHelper.Instance.Deserialize>(json); var ignoreCaseDict = ToIgnoreCaseDict(jsonObj); // 从JSON对象中获取参数值(大小写不敏感查找)