From dfa1803c8e08faff96a0543f51ffe15d5497a380 Mon Sep 17 00:00:00 2001 From: ishkong <19740260+ishkong@users.noreply.github.com> Date: Tue, 12 Nov 2024 22:34:22 +0800 Subject: [PATCH] Update GetGroupHonorInfoOperation.cs --- .../Core/Operation/Group/GetGroupHonorInfoOperation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lagrange.OneBot/Core/Operation/Group/GetGroupHonorInfoOperation.cs b/Lagrange.OneBot/Core/Operation/Group/GetGroupHonorInfoOperation.cs index 4efb8204d..074f6b410 100644 --- a/Lagrange.OneBot/Core/Operation/Group/GetGroupHonorInfoOperation.cs +++ b/Lagrange.OneBot/Core/Operation/Group/GetGroupHonorInfoOperation.cs @@ -56,7 +56,7 @@ public async Task HandleOperation(BotContext context, JsonNode? pa if (json[value] is JsonObject jsonObject) // 神经病 (我也觉得) { ProcessJsonObject(jsonObject); - if (honor.Type == "all" || honor.Type == "talkative") result.TryAdd(key, jsonObject.Deserialize()); + result.TryAdd(key, jsonObject.Deserialize()); } else if (json[value] is JsonArray jsonArray) { @@ -67,7 +67,7 @@ public async Task HandleOperation(BotContext context, JsonNode? pa ProcessJsonObject(itemObject); } } - if ((honor.Type == "all" && key.Contains(honorRaw)) || key.Contains(honor.Type)) result.TryAdd(key, jsonArray.Deserialize()); + if (key.Contains(honorRaw)) result.TryAdd(key, jsonArray.Deserialize()); } } }