mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-22 03:19:55 +08:00
fix(openai): 修复无法 XML 序列化派生类的问题
This commit is contained in:
@@ -60,6 +60,11 @@ namespace SKIT.FlurlHttpClient.Wechat.OpenAI.Utilities
|
||||
return Serialize(typeof(T), obj);
|
||||
}
|
||||
|
||||
public static string Serialize(object obj)
|
||||
{
|
||||
return Serialize(obj.GetType(), obj);
|
||||
}
|
||||
|
||||
public static object Deserialize(Type type, string xml)
|
||||
{
|
||||
using var reader = new StringReader(xml);
|
||||
|
||||
Reference in New Issue
Block a user