diff --git a/images/29af671916b1e8d3d7c87093e38d2d4.png b/images/29af671916b1e8d3d7c87093e38d2d4.png new file mode 100644 index 0000000..4b58541 Binary files /dev/null and b/images/29af671916b1e8d3d7c87093e38d2d4.png differ diff --git a/rearServer/src/main/java/com/tokensTool/pandoraNext/service/impl/apiServiceImpl.java b/rearServer/src/main/java/com/tokensTool/pandoraNext/service/impl/apiServiceImpl.java index a6f127e..3542b1a 100644 --- a/rearServer/src/main/java/com/tokensTool/pandoraNext/service/impl/apiServiceImpl.java +++ b/rearServer/src/main/java/com/tokensTool/pandoraNext/service/impl/apiServiceImpl.java @@ -929,12 +929,14 @@ public void updateSession() { List 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()); diff --git a/rearServer/target/classes/com/tokensTool/pandoraNext/service/impl/apiServiceImpl.class b/rearServer/target/classes/com/tokensTool/pandoraNext/service/impl/apiServiceImpl.class index facd65f..ce585de 100644 Binary files a/rearServer/target/classes/com/tokensTool/pandoraNext/service/impl/apiServiceImpl.class and b/rearServer/target/classes/com/tokensTool/pandoraNext/service/impl/apiServiceImpl.class differ diff --git a/rearServer/target/pandoraNext-0.4.9.2-SNAPSHOT.jar b/rearServer/target/pandoraNext-0.4.9.2-SNAPSHOT.jar index 2290e7b..333d2b1 100644 Binary files a/rearServer/target/pandoraNext-0.4.9.2-SNAPSHOT.jar and b/rearServer/target/pandoraNext-0.4.9.2-SNAPSHOT.jar differ diff --git a/rearServer/target/surefire-reports/2023-12-18T23-51-16_265-jvmRun1.dump b/rearServer/target/surefire-reports/2023-12-18T23-51-16_265-jvmRun1.dump new file mode 100644 index 0000000..4c15c67 --- /dev/null +++ b/rearServer/target/surefire-reports/2023-12-18T23-51-16_265-jvmRun1.dump @@ -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) diff --git a/simplyDeploy/pandoraNext-0.4.9.2-SNAPSHOT.jar b/simplyDeploy/pandoraNext-0.4.9.2-SNAPSHOT.jar index 2290e7b..333d2b1 100644 Binary files a/simplyDeploy/pandoraNext-0.4.9.2-SNAPSHOT.jar and b/simplyDeploy/pandoraNext-0.4.9.2-SNAPSHOT.jar differ