From edfd663743cc470fdd9bb3b31a95d34690c6aaf5 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Tue, 3 May 2022 16:53:09 +0800 Subject: [PATCH] update --- src/main/java/com/yutou/qqbot/QQBotApplication.java | 2 +- src/main/java/com/yutou/qqbot/utlis/WebClient.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yutou/qqbot/QQBotApplication.java b/src/main/java/com/yutou/qqbot/QQBotApplication.java index d5afbae..cadab2d 100644 --- a/src/main/java/com/yutou/qqbot/QQBotApplication.java +++ b/src/main/java/com/yutou/qqbot/QQBotApplication.java @@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class QQBotApplication { - public static final String version="QQBot v.1.2.24"; + public static final String version="QQBot v.1.2.25"; public static void main(String[] args) { System.out.println("version = " + version); SpringApplication.run(QQBotApplication.class, args); diff --git a/src/main/java/com/yutou/qqbot/utlis/WebClient.java b/src/main/java/com/yutou/qqbot/utlis/WebClient.java index 5ec6cba..f22618f 100644 --- a/src/main/java/com/yutou/qqbot/utlis/WebClient.java +++ b/src/main/java/com/yutou/qqbot/utlis/WebClient.java @@ -5,6 +5,7 @@ import com.alibaba.fastjson2.JSONObject; import org.openqa.selenium.Cookie; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; +import org.openqa.selenium.chrome.ChromeDriverLogLevel; import org.openqa.selenium.chrome.ChromeOptions; import java.util.ArrayList; @@ -29,7 +30,7 @@ public class WebClient { private WebClient() { System.setProperty("webdriver.chrome.driver", ConfigTools.load(ConfigTools.CONFIG, "chrome", String.class)); - System.setProperty("webdriver.chrome.whitelistedIps", ""); + // System.setProperty("webdriver.chrome.whitelistedIps", ""); // java.util.logging.Logger.getLogger("org.openqa.selenium").setLevel(Level.OFF); }