diff --git a/internal/app/system/controller/sys_login.go b/internal/app/system/controller/sys_login.go index 91ccc32..a800c9a 100644 --- a/internal/app/system/controller/sys_login.go +++ b/internal/app/system/controller/sys_login.go @@ -39,7 +39,7 @@ func (c *loginController) Login(ctx context.Context, req *system.UserLoginReq) ( menuList []*model.UserMenus ) //判断验证码是否正确 - debug := gmode.IsDevelop() + debug := gmode.IsProduct() if !debug { if !commonService.Captcha().VerifyString(req.VerifyKey, req.VerifyCode) { err = gerror.New("验证码输入错误")