回滚到3.4.5
This commit is contained in:
@@ -318,18 +318,7 @@ public class FormDataParsing : ITransient
|
||||
else conversionData = data;
|
||||
break;
|
||||
default:
|
||||
//modify by ly on 20230327
|
||||
var temp = data.ToString();
|
||||
Regex re = new Regex("(?<=\").*?(?=\")", RegexOptions.None);
|
||||
if (!re.IsMatch(temp))
|
||||
{
|
||||
temp = $"\"{data}\"";
|
||||
}
|
||||
if (!temp.StartsWith("[") && !temp.EndsWith("]"))
|
||||
{
|
||||
temp = $"[{temp}]";
|
||||
}
|
||||
conversionData = temp.ToObject<List<object>>();
|
||||
conversionData = data.ToString().ToObject<List<object>>();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user