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
f45b8857
...
f45b8857dce2c1a414c40b625043b5798fd7ae82
authored
2022-02-14 14:53:24 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
b9539975
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
28 deletions
src/main/java/com/bigdata/test/ETLApp.java
src/main/java/com/bigdata/test/ETLAppDebug.java
src/main/java/com/bigdata/test/ETLApp.java
View file @
f45b885
...
...
@@ -110,20 +110,32 @@ public class ETLApp {
if
(
request
!=
null
&&
!
""
.
equals
(
request
))
{
String
[]
requests
=
request
.
split
(
"&"
);
if
(
requests
!=
null
&&
requests
.
length
==
10
)
{
method
=
requests
[
1
]
!=
null
?
requests
[
1
].
replace
(
"method="
,
""
)
:
StringUtil
.
isNull
;
method
=
StringUtil
.
format
(
method
);
if
(
StringUtil
.
isMessyCode
(
method
))
{
method
=
""
;
}
uid
=
requests
[
2
]
!=
null
?
requests
[
2
].
replace
(
"uid="
,
""
)
:
StringUtil
.
isNull
;
uid
=
StringUtil
.
format
(
uid
);
if
(
StringUtil
.
isMessyCode
(
uid
))
{
uid
=
""
;
}
biz_data
=
requests
[
6
]
!=
null
?
requests
[
6
].
replace
(
"biz_data="
,
""
)
:
StringUtil
.
isNull
;
biz_data
=
StringUtil
.
format
(
biz_data
);
if
(
StringUtil
.
isMessyCode
(
biz_data
))
{
biz_data
=
""
;
for
(
int
i
=
0
;
i
<
requests
.
length
;
i
++)
{
if
(
requests
[
i
]
!=
null
)
{
if
(
requests
[
i
].
contains
(
"uid="
))
{
uid
=
requests
[
i
].
replace
(
"uid="
,
""
);
uid
=
StringUtil
.
format
(
uid
);
if
(
StringUtil
.
isMessyCode
(
uid
))
{
uid
=
""
;
}
}
else
if
(
requests
[
i
].
contains
(
"method="
))
{
method
=
requests
[
i
].
replace
(
"method="
,
""
);
method
=
StringUtil
.
format
(
method
);
if
(
StringUtil
.
isMessyCode
(
method
))
{
method
=
""
;
}
}
else
if
(
requests
[
i
].
contains
(
"biz_data="
))
{
biz_data
=
requests
[
i
].
replace
(
"biz_data="
,
""
);
biz_data
=
StringUtil
.
format
(
biz_data
);
if
(
StringUtil
.
isMessyCode
(
biz_data
))
{
biz_data
=
""
;
}
}
}
else
{
uid
=
StringUtil
.
isNull
;
method
=
StringUtil
.
isNull
;
biz_data
=
StringUtil
.
isNull
;
}
}
}
}
...
...
src/main/java/com/bigdata/test/ETLAppDebug.java
View file @
f45b885
...
...
@@ -107,20 +107,32 @@ public class ETLAppDebug {
if
(
request
!=
null
&&
!
""
.
equals
(
request
))
{
String
[]
requests
=
request
.
split
(
"&"
);
if
(
requests
!=
null
&&
requests
.
length
==
10
)
{
method
=
requests
[
1
]
!=
null
?
requests
[
1
].
replace
(
"method="
,
""
)
:
StringUtil
.
isNull
;
method
=
StringUtil
.
format
(
method
);
if
(
StringUtil
.
isMessyCode
(
method
))
{
method
=
""
;
}
uid
=
requests
[
2
]
!=
null
?
requests
[
2
].
replace
(
"uid="
,
""
)
:
StringUtil
.
isNull
;
uid
=
StringUtil
.
format
(
uid
);
if
(
StringUtil
.
isMessyCode
(
uid
))
{
uid
=
""
;
}
biz_data
=
requests
[
6
]
!=
null
?
requests
[
6
].
replace
(
"biz_data="
,
""
)
:
StringUtil
.
isNull
;
biz_data
=
StringUtil
.
format
(
biz_data
);
if
(
StringUtil
.
isMessyCode
(
biz_data
))
{
biz_data
=
""
;
for
(
int
i
=
0
;
i
<
requests
.
length
;
i
++)
{
if
(
requests
[
i
]
!=
null
)
{
if
(
requests
[
i
].
contains
(
"uid="
))
{
uid
=
requests
[
i
].
replace
(
"uid="
,
""
);
uid
=
StringUtil
.
format
(
uid
);
if
(
StringUtil
.
isMessyCode
(
uid
))
{
uid
=
""
;
}
}
else
if
(
requests
[
i
].
contains
(
"method="
))
{
method
=
requests
[
i
].
replace
(
"method="
,
""
);
method
=
StringUtil
.
format
(
method
);
if
(
StringUtil
.
isMessyCode
(
method
))
{
method
=
""
;
}
}
else
if
(
requests
[
i
].
contains
(
"biz_data="
))
{
biz_data
=
requests
[
i
].
replace
(
"biz_data="
,
""
);
biz_data
=
StringUtil
.
format
(
biz_data
);
if
(
StringUtil
.
isMessyCode
(
biz_data
))
{
biz_data
=
""
;
}
}
}
else
{
uid
=
StringUtil
.
isNull
;
method
=
StringUtil
.
isNull
;
biz_data
=
StringUtil
.
isNull
;
}
}
}
}
...
...
Please
register
or
sign in
to post a comment