Skip to content

Commit

Permalink
Update GetGroupHonorInfoOperation.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ishkong authored Nov 12, 2024
1 parent 5ec456e commit dfa1803
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public async Task<OneBotResult> 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<JsonNode>());
result.TryAdd(key, jsonObject.Deserialize<JsonNode>());
}
else if (json[value] is JsonArray jsonArray)
{
Expand All @@ -67,7 +67,7 @@ public async Task<OneBotResult> HandleOperation(BotContext context, JsonNode? pa
ProcessJsonObject(itemObject);
}
}
if ((honor.Type == "all" && key.Contains(honorRaw)) || key.Contains(honor.Type)) result.TryAdd(key, jsonArray.Deserialize<JsonNode>());
if (key.Contains(honorRaw)) result.TryAdd(key, jsonArray.Deserialize<JsonNode>());
}
}
}
Expand Down

0 comments on commit dfa1803

Please sign in to comment.