Skip to content

Commit

Permalink
Update http.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
idranme committed Nov 29, 2024
1 parent 603ce59 commit bb72b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/qq/src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class HttpServer<C extends Context = Context> extends Adapter<C, QQBot<C>
const key = this.getPrivateKey(bot.config.secret)
const data = payload.d.event_ts + payload.d.plain_token
const sig = await signAsync(new TextEncoder().encode(data), key)
ctx.body = {
return ctx.body = {
plain_token: payload.d.plain_token,
signature: Binary.toHex(sig),
}
Expand Down

0 comments on commit bb72b1d

Please sign in to comment.