Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
增加自动在自定义天数之后的当天凌晨一点更新自定义数量,刷新不和web的token比较
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanyutin753 committed Dec 18, 2023
1 parent b4e01ad commit 662eeb7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
Binary file added images/29af671916b1e8d3d7c87093e38d2d4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -929,12 +929,14 @@ public void updateSession() {
List<token> tokens = selectToken("");
token resToken = null;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
LocalDateTime minDateTime = LocalDateTime.parse(tokens.get(0).getUpdateTime(), formatter); // 初始化为列表的第一个日期时间
LocalDateTime minDateTime = LocalDateTime.parse(tokens.get(0).getUpdateTime(), formatter);
for (token token : tokens) {
LocalDateTime currentDateTime = LocalDateTime.parse(token.getUpdateTime(), formatter);
if (currentDateTime.isBefore(minDateTime)) {
minDateTime = currentDateTime;
resToken = token;
if(token.isSetPoolToken()){
LocalDateTime currentDateTime = LocalDateTime.parse(token.getUpdateTime(), formatter);
if (currentDateTime.isBefore(minDateTime)) {
minDateTime = currentDateTime;
resToken = token;
}
}
}
log.info("更新的token名为:" + resToken.getName());
Expand Down
Binary file not shown.
Binary file modified rearServer/target/pandoraNext-0.4.9.2-SNAPSHOT.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Created at 2023-12-18T23:51:17.607
System.exit() or native command error interrupted process checker.
java.lang.IllegalStateException: error [STOPPED] to read process 26544
at org.apache.maven.surefire.booter.PpidChecker.checkProcessInfo(PpidChecker.java:145)
at org.apache.maven.surefire.booter.PpidChecker.isProcessAlive(PpidChecker.java:116)
at org.apache.maven.surefire.booter.ForkedBooter$2.run(ForkedBooter.java:214)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Binary file modified simplyDeploy/pandoraNext-0.4.9.2-SNAPSHOT.jar
Binary file not shown.

0 comments on commit 662eeb7

Please sign in to comment.