liusheng
2 天以前 fdc9651c4b83c18e044a3a9ac6b5e019ffa6328d
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java
@@ -69,7 +69,7 @@
     * @return 结果
     */
    public String login(String username, String password, String code, String uuid, String openId, String dingUserId) {
        log.info("username是否为空:{},password是否为空:{},dingUserId是否为空:{}",username,password,dingUserId);
        log.info("username是否为空:{},password是否为空:{},dingUserId是否为空:{}", username, password, dingUserId);
        //免登
        if (StringUtils.isNotEmpty(dingUserId)) {
            SysUser sysUser = sysUserMapper.selectUserByDingUserId(dingUserId);
@@ -81,7 +81,9 @@
        }
        SysUser sysUser = sysUserMapper.selectUserByUserName(username);
        if (sysUser.getErrorNums() >= 3) {
        //获取锁定次数
        String s = configService.selectConfigByKey("sys.opo.lockpwd");
        if (sysUser.getErrorNums() >= Integer.valueOf(s)) {
            //校验失败次数
            throw new BaseException("你的密码输入错误次数过多,请联系管理员处理");
        }