From 6b2df4d1ad86f6636138f850dc87dc998fe80d7f Mon Sep 17 00:00:00 2001 From: Shua-github Date: Mon, 6 Jan 2025 19:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E8=BF=94=E5=9B=9E-1=E5=B9=B6?= =?UTF-8?q?=E5=AF=B9=E6=8F=90=E4=BA=A4=E7=AD=BE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lagrange.OneBot/Core/Operation/Message/SendPokeOperation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lagrange.OneBot/Core/Operation/Message/SendPokeOperation.cs b/Lagrange.OneBot/Core/Operation/Message/SendPokeOperation.cs index d203ecbc2..e6fb9b5ff 100644 --- a/Lagrange.OneBot/Core/Operation/Message/SendPokeOperation.cs +++ b/Lagrange.OneBot/Core/Operation/Message/SendPokeOperation.cs @@ -15,7 +15,7 @@ public async Task HandleOperation(BotContext context, JsonNode? pa if (payload.Deserialize(SerializerOptions.DefaultOptions) is { } poke) { bool result = poke.GroupId.HasValue ? await context.GroupPoke(poke.GroupId.Value, poke.UserId) : await context.FriendPoke(poke.UserId); - return new OneBotResult(null, result ? 0 : 1, result ? "ok" : "failed"); + return new OneBotResult(null, result ? 0 : -1, result ? "ok" : "failed"); } throw new Exception();