fix: 修复输出为空问题
This commit is contained in:
@@ -73,15 +73,15 @@ public class ThorChatMessage
|
||||
{
|
||||
if (value is JsonElement str)
|
||||
{
|
||||
if (str.ValueKind == JsonValueKind.Array)
|
||||
if (str.ValueKind == JsonValueKind.String)
|
||||
{
|
||||
Content = value?.ToString();
|
||||
}
|
||||
else if (str.ValueKind == JsonValueKind.Array)
|
||||
{
|
||||
Contents = JsonSerializer.Deserialize<IList<ThorChatMessageContent>>(value?.ToString());
|
||||
}
|
||||
}
|
||||
else if (value is string strInput)
|
||||
{
|
||||
Content = strInput;
|
||||
}
|
||||
else
|
||||
{
|
||||
Content = value?.ToString();
|
||||
|
||||
Reference in New Issue
Block a user