Skip to content

Commit

Permalink
WIP: add debug console
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhuapiaoyuan committed Nov 17, 2024
1 parent b24a678 commit 32679ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/wechatmp/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ export default function WeChatMp<P extends WechatMpProfile>(
}
return new Response('验证失败', { status: 405 })
}
if (action === 'debug') {
return Response.json({ data: captchaManager.list() })
}
if (action === 'qrcode') {
const code = await captchaManager.generate()
let imgLink = qrcodeImageUrl!
Expand Down

0 comments on commit 32679ce

Please sign in to comment.