@@ -322,6 +322,7 @@ func (this *UserLoginController) Login() {
ok := store.Verify(req.CaptchaId, req.CaptchaCode, true)
if !ok {
br.Msg = "图形验证码错误, 请重新输入"
+ br.Ret = models.BaseRespCodeLoginCaptchErr
return
}
@@ -3,6 +3,7 @@ package models
const (
BaseRespCodeAbnormalLogin = 4011 // 异常登录状态码
BaseRespCodeLoginErr = 4012 // 账号或密码输入错误
+ BaseRespCodeLoginCaptchErr = 4022 // 图形验证码错误
)
type BaseResponse struct {