src\api\captcha.js const svgCaptcha = require('svg-captcha'); function getCaptcha(ctx) { // 若创建算数式验证码,将create改为createMathExpr const newCaptcha = svgCaptcha.create({ size: 4, //验证码长度 fontSize: 45, //验证码字号 noise: Math.floor(Math.random() * 5), //干扰线条数目...