Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张浩
/
BrBigDataTest
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d4aea0b8
...
d4aea0b80f61e9d6310a239064db206bf1084477
authored
2022-01-18 19:55:03 +0800
by
张浩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
89d40970
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
src/main/java/com/bigdata/test/ETLApp.java
src/main/java/com/bigdata/test/ETLApp.java
View file @
d4aea0b
...
...
@@ -106,10 +106,9 @@ public class ETLApp {
response
=
StringUtil
.
format
(
response
);
if
(
StringUtil
.
isMessyCode
(
response
))
{
response
=
""
;
}
else
{
response
=
response
.
replaceAll
(
"\"nick\":.*,"
,
"\"nick\":\"BigData\","
);
}
// else {
// response = response.replaceAll("\"nick\":.*,","\"nick\":\"BigData\",");
// }
if
(
request
!=
null
&&
!
""
.
equals
(
request
))
{
String
[]
requests
=
request
.
split
(
"&"
);
if
(
requests
!=
null
&&
requests
.
length
==
10
)
{
...
...
@@ -127,10 +126,9 @@ public class ETLApp {
biz_data
=
StringUtil
.
format
(
biz_data
);
if
(
StringUtil
.
isMessyCode
(
biz_data
))
{
biz_data
=
""
;
}
else
{
biz_data
=
biz_data
.
replaceAll
(
"\"nick\":.*,"
,
"\"nick\":\"BigData\","
);
}
// else {
// biz_data = biz_data.replaceAll("\"nick\":.*,","\"nick\":\"BigData\",");
// }
}
}
if
(
response
!=
null
&&
!
""
.
equals
(
response
)
&&
JsonUtil
.
isJson
(
response
))
{
...
...
Please
register
or
sign in
to post a comment