调整验证码校验规则保证前后端配置一致 #794

This commit is contained in:
piexl
2021-11-09 11:37:28 +08:00
parent e12c1b7b8d
commit c6cf4d06bc
4 changed files with 20 additions and 148 deletions

View File

@@ -34,8 +34,9 @@ func (b *BaseApi) Captcha(c *gin.Context) {
response.FailWithMessage("验证码获取失败", c)
} else {
response.OkWithDetailed(systemRes.SysCaptchaResponse{
CaptchaId: id,
PicPath: b64s,
CaptchaId: id,
PicPath: b64s,
CaptchaLength: global.GVA_CONFIG.Captcha.KeyLong,
}, "验证码获取成功", c)
}
}