const captcha = svgCaptcha.create( {
size:6,
fontSize: 50,
width: 100,
height:40,
background:"#cc9966"
});
ctx.session.code=captcha.text;
ctx.response.type = 'image/svg+xml';
ctx.body=captcha.data;
koa实现验证码功能
最新推荐文章于 2024-05-16 19:06:52 发布