Skip to content

Commit

Permalink
失败返回-1并对提交签名
Browse files Browse the repository at this point in the history
  • Loading branch information
Shua-github committed Jan 6, 2025
1 parent b435d97 commit 6b2df4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public async Task<OneBotResult> HandleOperation(BotContext context, JsonNode? pa
if (payload.Deserialize<OneBotSendPoke>(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();
Expand Down

0 comments on commit 6b2df4d

Please sign in to comment.