Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-spark-tag-4.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaokang
gic-spark-tag-4.0
Commits
53ada911
Commit
53ada911
authored
Aug 26, 2020
by
guos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员标签4.0
parent
d5a9bc4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
IndexRequestUtil.java
src/main/java/com/gic/spark/util/IndexRequestUtil.java
+4
-3
No files found.
src/main/java/com/gic/spark/util/IndexRequestUtil.java
View file @
53ada911
...
@@ -25,9 +25,9 @@ public class IndexRequestUtil {
...
@@ -25,9 +25,9 @@ public class IndexRequestUtil {
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
HttpClient
.
getResponseString
(
response
));
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
HttpClient
.
getResponseString
(
response
));
List
<
String
>
result
=
new
ArrayList
();
List
<
String
>
result
=
new
ArrayList
();
try
{
try
{
JSONArray
jsonArray
=
jsonObject
.
getJSON
Object
(
"result"
).
getJSON
Array
(
"result"
);
JSONArray
jsonArray
=
jsonObject
.
getJSONArray
(
"result"
);
for
(
Object
obj
:
jsonArray
)
{
for
(
Object
obj
:
jsonArray
)
{
result
.
add
(
(
String
)
obj
);
result
.
add
(
String
.
valueOf
(
obj
)
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
DingtalkMessageUtil
.
sendAlertMessage
(
"widgetId: "
+
widgetId
+
" enterpriseId: "
+
enterpriseId
+
" parsing store error "
);
DingtalkMessageUtil
.
sendAlertMessage
(
"widgetId: "
+
widgetId
+
" enterpriseId: "
+
enterpriseId
+
" parsing store error "
);
...
@@ -44,7 +44,8 @@ public class IndexRequestUtil {
...
@@ -44,7 +44,8 @@ public class IndexRequestUtil {
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
HttpClient
.
getResponseString
(
response
));
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
HttpClient
.
getResponseString
(
response
));
List
<
String
>
result
=
new
ArrayList
();
List
<
String
>
result
=
new
ArrayList
();
try
{
try
{
JSONArray
jsonArray
=
jsonObject
.
getJSONObject
(
"result"
).
getJSONObject
(
"result"
).
getJSONArray
(
"list"
);
JSONArray
jsonArray
=
jsonObject
.
getJSONObject
(
"result"
).
getJSONArray
(
"list"
);
for
(
Object
obj
:
jsonArray
)
{
for
(
Object
obj
:
jsonArray
)
{
result
.
add
((
String
)
obj
);
result
.
add
((
String
)
obj
);
}
}
...
...
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