jiangping
2023-12-29 f9691d544e62d6c04dbfe45d05a6c7bc5e004291
server/services/src/main/java/com/doumee/service/system/impl/SystemLoginServiceImpl.java
@@ -51,8 +51,8 @@
    private SystemDictDataBiz systemDictDataBiz;
    @Value("${captcha_check}")
    private Boolean captchaCheck;
    @Value("${debug_model}")
    private Boolean debugModel;
    @Override
    public String loginByPassword(LoginDTO dto,  HttpServletRequest request) {
@@ -87,7 +87,7 @@
        loginLog.setServerIp(Utils.Server.getIP());
        if(needCheckCode){
            // 校验验证码
            if(captchaCheck) {
            if(!debugModel) {
                try {
                    captchaService.check(dto.getUuid(), dto.getCode());
                } catch (Exception e) {
@@ -123,7 +123,7 @@
            if (e.getCause() instanceof BusinessException) {
                throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT.getCode(), e.getCause().getMessage());
            }
            throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT.getCode(), "提示对不起,账号或密码错误!");
            throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT.getCode(), "对不起,账号或密码错误!");
        }
    }