Merge branch 'dev' of github.com:dromara/sa-token into dev

This commit is contained in:
click33 2022-12-27 12:41:20 +08:00
commit 418172362a
4 changed files with 6177 additions and 14089 deletions

View File

@ -506,12 +506,8 @@ public class StpLogic {
} }
} }
List<TokenSign> list = session.tokenSignListCopyByDevice(device); List<TokenSign> list = session.tokenSignListCopyByDevice(device);
// 遍历操作 // 遍历操作只操作前n条
for (int i = 0; i < list.size(); i++) { for (int i = 0; i < list.size() - maxLoginCount; i++) {
// 只操作前n条
if(i >= list.size() - maxLoginCount) {
continue;
}
// 清理 token签名token最后活跃时间 // 清理 token签名token最后活跃时间
String tokenValue = list.get(i).getValue(); String tokenValue = list.get(i).getValue();
session.removeTokenSign(tokenValue); session.removeTokenSign(tokenValue);

File diff suppressed because it is too large Load Diff

View File

@ -14,9 +14,9 @@
"vue-router": "^3.6.5" "vue-router": "^3.6.5"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "~4.4.6", "@vue/cli-plugin-babel": "~5.0.8",
"@vue/cli-plugin-eslint": "~4.4.6", "@vue/cli-plugin-eslint": "~5.0.8",
"@vue/cli-service": "~4.4.6", "@vue/cli-service": "~5.0.8",
"babel-eslint": "^10.1.0", "babel-eslint": "^10.1.0",
"eslint": "^6.7.2", "eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2", "eslint-plugin-vue": "^6.2.2",

View File

@ -34,7 +34,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId> <artifactId>spring-web</artifactId>
<version>5.3.7</version> <version>6.0.0</version>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>