BUG:数据如果带双引号会出错

This commit is contained in:
yzp 2025-03-05 16:11:15 +08:00
parent 3d50990047
commit 45b41ff8ea

View File

@ -483,7 +483,7 @@ public class SysDatabaseService : IDynamicApiController, ITransient
if (value == null) value = "null";
else if (propType == typeof(string))
{
value = $"@\"{value}\"";
value = $"@\"{value.ToString().Replace("\"", "\"\"")}\"";
}
else if (propType.IsEnum)
{