[feat] 调整验证码

This commit is contained in:
what 2024-01-31 15:18:15 +08:00
parent a79b4c33a6
commit a3eaa24141

View File

@ -91,12 +91,12 @@ var (
ErrApiResponsed = &Errno{Code: 20502, Msg: "Api Responsed Error"}
// 验证码错误,206
ErrCaptcha = &Errno{Code: 20601, Msg: "验证码生成器不存在"}
ErrCaptchaGenerate = &Errno{Code: 20602, Msg: "验证码生成错误"}
ErrCaptchaInvalid = &Errno{Code: 20603, Msg: "验证码无效"}
ErrCaptchaExpired = &Errno{Code: 20604, Msg: "验证码已过期"}
ErrCaptchaSend = &Errno{Code: 20605, Msg: "验证码发送错误"}
ErrCaptchaSendInterval = &Errno{Code: 20606, Msg: "验证码发送失败, 请稍后再试"}
ErrCaptcha = &Errno{Code: 20601, Msg: "验证码生成器不存在"}
ErrCaptchaGenerate = &Errno{Code: 20602, Msg: "验证码生成错误"}
ErrCaptchaInvalid = &Errno{Code: 20603, Msg: "验证码无效"}
ErrCaptchaExpired = &Errno{Code: 20604, Msg: "验证码已过期"}
ErrCaptchaSend = &Errno{Code: 20605, Msg: "验证码发送错误"}
ErrCaptchaInterval = &Errno{Code: 20606, Msg: "验证码获取失败, 请稍后再试"}
)
// 使用 错误码 和 error 创建新的 错误