Commit 6eede6d5 authored by 赵啸非's avatar 赵啸非

修改重试机制

parent 1caa2da8
......@@ -31,7 +31,7 @@ public class MatterHtmlParseUtil {
String matterTotalExp = "//input[@id=\"result_count\"]";
String matterPageExp = "//input[@id=\"pageNum\"]";
Map<String, Integer> resultMap = new HashMap<>();
int reCount = 0;
int reCount = 0;
while (reCount < MAX_RETRY_COUNT) {
try {
Document dom = Jsoup.connect(url)
......@@ -173,6 +173,7 @@ public class MatterHtmlParseUtil {
}
buildMatter(matterEntityList, title, href, evaluationUrl, netApplyUrl);
}
break;
} catch (Exception e) {
log.error("获取列表异常!params:{},重试:{}次", JSON.toJSONString(params), reCount, e);
......
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