Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
6eede6d5
Commit
6eede6d5
authored
Mar 21, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改重试机制
parent
1caa2da8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
base-manager/src/main/java/com/mortals/xhx/common/utils/MatterHtmlParseUtil.java
...ava/com/mortals/xhx/common/utils/MatterHtmlParseUtil.java
+2
-1
No files found.
base-manager/src/main/java/com/mortals/xhx/common/utils/MatterHtmlParseUtil.java
View file @
6eede6d5
...
@@ -31,7 +31,7 @@ public class MatterHtmlParseUtil {
...
@@ -31,7 +31,7 @@ public class MatterHtmlParseUtil {
String
matterTotalExp
=
"//input[@id=\"result_count\"]"
;
String
matterTotalExp
=
"//input[@id=\"result_count\"]"
;
String
matterPageExp
=
"//input[@id=\"pageNum\"]"
;
String
matterPageExp
=
"//input[@id=\"pageNum\"]"
;
Map
<
String
,
Integer
>
resultMap
=
new
HashMap
<>();
Map
<
String
,
Integer
>
resultMap
=
new
HashMap
<>();
int
reCount
=
0
;
int
reCount
=
0
;
while
(
reCount
<
MAX_RETRY_COUNT
)
{
while
(
reCount
<
MAX_RETRY_COUNT
)
{
try
{
try
{
Document
dom
=
Jsoup
.
connect
(
url
)
Document
dom
=
Jsoup
.
connect
(
url
)
...
@@ -173,6 +173,7 @@ public class MatterHtmlParseUtil {
...
@@ -173,6 +173,7 @@ public class MatterHtmlParseUtil {
}
}
buildMatter
(
matterEntityList
,
title
,
href
,
evaluationUrl
,
netApplyUrl
);
buildMatter
(
matterEntityList
,
title
,
href
,
evaluationUrl
,
netApplyUrl
);
}
}
break
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"获取列表异常!params:{},重试:{}次"
,
JSON
.
toJSONString
(
params
),
reCount
,
e
);
log
.
error
(
"获取列表异常!params:{},重试:{}次"
,
JSON
.
toJSONString
(
params
),
reCount
,
e
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment