Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit a8923c5

Browse files
committed
新建分支
1 parent e261e31 commit a8923c5

3 files changed

Lines changed: 206 additions & 251 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.zhazhapan</groupId>
66
<artifactId>visual-spider</artifactId>
7-
<version>1.0</version>
7+
<version>1.1</version>
88
<build>
99
<plugins>
1010
<plugin>

src/main/java/com/zhazhapan/vspider/controller/MainController.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class MainController {
6060
@FXML
6161
private CheckBox othersCK;
6262
@FXML
63-
private Button toogleCrawling;
63+
private Button toggleCrawling;
6464
@FXML
6565
private TextField numsTF;
6666
@FXML
@@ -189,7 +189,7 @@ public void toCrawl() {
189189
if (crawling) {
190190
// 暂停爬虫
191191
crawling = false;
192-
toogleCrawling.setText(Values.CRAWLER_START);
192+
toggleCrawling.setText(Values.CRAWLER_START);
193193
statusLabel.setText("crawler suspend");
194194
App.controller.shutdown();
195195
} else {
@@ -204,7 +204,7 @@ public void toCrawl() {
204204
return;
205205
}
206206
crawling = true;
207-
toogleCrawling.setText(Values.CRAWLER_STOP);
207+
toggleCrawling.setText(Values.CRAWLER_STOP);
208208
logger.info("start to crawl urls: " + crawlUrl.getText());
209209
statusLabel.setText("starting......");
210210
// 读取爬虫配置
@@ -251,7 +251,7 @@ private void finished(boolean start) {
251251
statusLabel.setText("start error");
252252
}
253253
crawling = false;
254-
toogleCrawling.setText(Values.CRAWLER_START);
254+
toggleCrawling.setText(Values.CRAWLER_START);
255255
if (CrawlConfig.getRepeatCrawl().get()) {
256256
repeatCrawl();
257257
}
@@ -302,7 +302,7 @@ public void reset() {
302302
logOut.clear();
303303
crawlUrl.clear();
304304
crawling = false;
305-
toogleCrawling.setText(Values.CRAWLER_START);
305+
toggleCrawling.setText(Values.CRAWLER_START);
306306
App.visitUrls.clear();
307307
App.downloadUrls.clear();
308308
App.initThreadPool();

0 commit comments

Comments
 (0)