Commit 1caa2da8 authored by 赵啸非's avatar 赵啸非

修改重试机制

parent 3bae4198
......@@ -185,6 +185,7 @@ public class MatterTypeHtmlParseUtil {
Document dom = Jsoup.connect(url)
.ignoreContentType(true)
.ignoreHttpErrors(true)
.timeout(60 * 1000)
.data(params).get();
Elements elements = dom.selectXpath(ThemeListExp);
......@@ -231,6 +232,7 @@ public class MatterTypeHtmlParseUtil {
Document dom = Jsoup.connect(url)
.ignoreContentType(true)
.ignoreHttpErrors(true)
.timeout(60 * 1000)
.data(params).get();
Elements elements = dom.selectXpath(matterListExp);
......@@ -285,6 +287,7 @@ public class MatterTypeHtmlParseUtil {
Document dom = Jsoup.connect(url)
.ignoreContentType(true)
.ignoreHttpErrors(true)
.timeout(60 * 1000)
.data(params).get();
Elements elements = dom.selectXpath(matterListExp);
......@@ -342,6 +345,7 @@ public class MatterTypeHtmlParseUtil {
Document dom = Jsoup.connect(url)
.ignoreContentType(true)
.ignoreHttpErrors(true)
.timeout(60 * 1000)
.data(params).get();
Elements elements = dom.selectXpath(matterListExp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment