From 1609404ed43a691041465b3fb1dfa52b6b34818f Mon Sep 17 00:00:00 2001 From: wangchunxiang <526328077@qq.com> Date: Wed, 15 Oct 2025 20:24:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(PlatformSelectionView):=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=BA=BF=E7=A8=8B=E6=B1=A0=E6=89=A7=E8=A1=8C=20Cookie?= =?UTF-8?q?=20=E6=8B=A6=E6=88=AA=E4=BB=BB=E5=8A=A1=20=E5=B0=86=E5=8E=9F?= =?UTF-8?q?=E5=85=88=E7=9B=B4=E6=8E=A5=E8=B0=83=E7=94=A8=20executeCookieIn?= =?UTF-8?q?tercept()=20=E6=96=B9=E6=B3=95=E6=94=B9=E4=B8=BA=E9=80=9A?= =?UTF-8?q?=E8=BF=87ThreadPoolTaskExecutor=20=E7=BA=BF=E7=A8=8B=E6=B1=A0?= =?UTF-8?q?=E6=9D=A5=E5=BC=82=E6=AD=A5=E6=89=A7=E8=A1=8C=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E9=98=BB=E5=A1=9E=20UI=20=E7=BA=BF=E7=A8=8B=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E5=8D=87=E7=95=8C=E9=9D=A2=E5=93=8D=E5=BA=94=E6=80=A7?= =?UTF-8?q?=E8=83=BD=E3=80=82=E5=AF=B9=E4=B8=A4=E4=B8=AA=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E6=8C=89=E9=92=AE=E7=9A=84=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=20?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=BA=86=E7=BB=9F=E4=B8=80=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fantaibao/page/PlatformSelectionView.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/fantaibao/page/PlatformSelectionView.java b/src/main/java/com/fantaibao/page/PlatformSelectionView.java index 8bead79..51a57f0 100644 --- a/src/main/java/com/fantaibao/page/PlatformSelectionView.java +++ b/src/main/java/com/fantaibao/page/PlatformSelectionView.java @@ -14,6 +14,7 @@ import javafx.scene.image.ImageView; import javafx.scene.layout.HBox; import javafx.scene.layout.VBox; import javafx.stage.Stage; +import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; public class PlatformSelectionView { @@ -93,10 +94,11 @@ public class PlatformSelectionView { connectButton.setOnAction(event -> { FtbCrawlNetBase ftbCrawlNetMt = SpringContext.getBean("ftbCrawlNetMt"); - ftbCrawlNetMt.executeCookieIntercept(); - + ThreadPoolTaskExecutor poolTaskExecutor = SpringContext.getBean(ThreadPoolTaskExecutor.class); + poolTaskExecutor.execute(() -> { + ftbCrawlNetMt.executeCookieIntercept(); + }); }); - option.getChildren().addAll(imageView, titleLabel, connectButton); return option; @@ -122,8 +124,10 @@ public class PlatformSelectionView { connectButton.setOnAction(event -> { FtbCrawlNetBase ftbCrawlNetMt = SpringContext.getBean("ftbCrawlNetDy"); - ftbCrawlNetMt.executeCookieIntercept(); - + ThreadPoolTaskExecutor poolTaskExecutor = SpringContext.getBean(ThreadPoolTaskExecutor.class); + poolTaskExecutor.execute(() -> { + ftbCrawlNetMt.executeCookieIntercept(); + }); }); option.getChildren().addAll(imageView, titleLabel, connectButton);