更新依赖

优化签到代码
This commit is contained in:
Yutousama 2022-04-28 09:14:52 +08:00
parent f116568261
commit f1ed4be143
2 changed files with 30 additions and 8 deletions

31
pom.xml
View File

@ -35,24 +35,24 @@
<dependency> <dependency>
<groupId>net.mamoe</groupId> <groupId>net.mamoe</groupId>
<artifactId>mirai-core-jvm</artifactId> <artifactId>mirai-core-jvm</artifactId>
<version>2.10.0</version> <version>2.10.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jetbrains.kotlinx</groupId> <groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-jdk8</artifactId> <artifactId>kotlinx-coroutines-jdk8</artifactId>
<version>1.6.0-native-mt</version> <version>1.6.1-native-mt</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jetbrains.kotlinx</groupId> <groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core-jvm</artifactId> <artifactId>kotlinx-coroutines-core-jvm</artifactId>
<version>1.6.0-native-mt</version> <version>1.6.1-native-mt</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/redis.clients/jedis --> <!-- https://mvnrepository.com/artifact/redis.clients/jedis -->
<dependency> <dependency>
<groupId>redis.clients</groupId> <groupId>redis.clients</groupId>
<artifactId>jedis</artifactId> <artifactId>jedis</artifactId>
<version>4.2.0</version> <version>4.2.2</version>
</dependency> </dependency>
@ -60,7 +60,7 @@
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId> <artifactId>fastjson</artifactId>
<version>1.2.80</version> <version>2.0.1</version>
</dependency> </dependency>
<dependency> <dependency>
@ -81,8 +81,27 @@
<dependency> <dependency>
<groupId>org.seleniumhq.selenium</groupId> <groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId> <artifactId>selenium-java</artifactId>
<version>3.141.59</version> <version>4.1.3</version>
</dependency> </dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId>
<version>4.1.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-api -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>4.1.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-remote-driver -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-driver</artifactId>
<version>4.1.3</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>

View File

@ -78,8 +78,6 @@ public class Tsdm extends Model {
} }
} }
if (!isSign) { if (!isSign) {
driver.close();
driver.quit();
return true; return true;
} }
try { try {
@ -152,4 +150,9 @@ public class Tsdm extends Model {
driver.quit(); driver.quit();
return body; return body;
} }
public static void main(String[] args) {
boolean sign = new Tsdm().tsdmSign();
System.out.println("sign = " + sign);
}
} }