diff --git a/pom.xml b/pom.xml index dc05015..1bb6e99 100644 --- a/pom.xml +++ b/pom.xml @@ -35,24 +35,24 @@ net.mamoe mirai-core-jvm - 2.10.0 + 2.10.1 org.jetbrains.kotlinx kotlinx-coroutines-jdk8 - 1.6.0-native-mt + 1.6.1-native-mt org.jetbrains.kotlinx kotlinx-coroutines-core-jvm - 1.6.0-native-mt + 1.6.1-native-mt redis.clients jedis - 4.2.0 + 4.2.2 @@ -60,7 +60,7 @@ com.alibaba fastjson - 1.2.80 + 2.0.1 @@ -81,8 +81,27 @@ org.seleniumhq.selenium selenium-java - 3.141.59 + 4.1.3 + + org.seleniumhq.selenium + selenium-chrome-driver + 4.1.3 + + + + org.seleniumhq.selenium + selenium-api + 4.1.3 + + + + org.seleniumhq.selenium + selenium-remote-driver + 4.1.3 + + + org.springframework.boot spring-boot-starter-web diff --git a/src/main/java/com/yutou/qqbot/models/WebSign/Tsdm.java b/src/main/java/com/yutou/qqbot/models/WebSign/Tsdm.java index 762990b..a2c5e3a 100644 --- a/src/main/java/com/yutou/qqbot/models/WebSign/Tsdm.java +++ b/src/main/java/com/yutou/qqbot/models/WebSign/Tsdm.java @@ -78,8 +78,6 @@ public class Tsdm extends Model { } } if (!isSign) { - driver.close(); - driver.quit(); return true; } try { @@ -152,4 +150,9 @@ public class Tsdm extends Model { driver.quit(); return body; } + + public static void main(String[] args) { + boolean sign = new Tsdm().tsdmSign(); + System.out.println("sign = " + sign); + } }