src/main/java/org/springblade/modules/auth/endpoint/BladeTokenEndPoint.java
@@ -158,13 +158,17 @@ } } } }else { System.out.println("grantType = " + grantType); //刷新 token 不新增登录记录 // if (!grantType.equals("refresh_token")){ // //新增登录记录 // this.saveLoginRecord(userInfo); // } if (!grantType.equals("refresh_token")){ //新增登录记录 this.saveLoginRecord(userInfo); } }else { //刷新 token 不新增登录记录 if (!grantType.equals("refresh_token")){ //新增登录记录 this.saveLoginRecord(userInfo); } } return TokenUtil.createAuthInfo(userInfo); }