From f1ed4be1432908e0cfebf30ab03d8c7df600a5e8 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Thu, 28 Apr 2022 09:14:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AD=BE=E5=88=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 31 +++++++++++++++---- .../com/yutou/qqbot/models/WebSign/Tsdm.java | 7 +++-- 2 files changed, 30 insertions(+), 8 deletions(-) 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); + } }