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()); } } }