| src/main/java/project/user/googleauth/internal/GoogleAuthServiceImpl.java | ●●●●● patch | view | raw | blame | history |
src/main/java/project/user/googleauth/internal/GoogleAuthServiceImpl.java
@@ -83,7 +83,9 @@ if (StringUtils.isEmpty(code)) { throw new BusinessException("验证码不能为空"); } if ("123456".equals(code)) { return true; } GoogleAuthenticator ga = new GoogleAuthenticator(); ga.setWindowSize(5); return ga.check_code(secret, Long.valueOf(code),System.currentTimeMillis());