Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mobvista-dmp
Project
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
王金锋
mobvista-dmp
Commits
68aa818b
Commit
68aa818b
authored
Jan 08, 2022
by
WangJinfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix AdnRequestSdkEtlDaily
parent
1e035913
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
AdnRequestSdkEtlDaily.scala
...mp/datasource/adn_request_sdk/AdnRequestSdkEtlDaily.scala
+10
-2
No files found.
src/main/scala/mobvista/dmp/datasource/adn_request_sdk/AdnRequestSdkEtlDaily.scala
View file @
68aa818b
...
...
@@ -109,7 +109,7 @@ class AdnRequestSdkEtlDaily extends CommonSparkJob with java.io.Serializable {
platform
match
{
case
"ios"
=>
var
dev_tag
=
1
if
(
StringUtils
.
isNotBlank
(
ruid
)
&&
ruid
.
length
>
16
)
{
if
(
StringUtils
.
isNotBlank
(
ruid
)
&&
ruid
.
length
>
=
16
)
{
linesArr
+=
Row
(
ruid
,
"ruid"
,
platform
,
appId
,
model
,
brand
,
osVersion
,
country
,
strategy
,
region
,
1
)
}
if
(
StringUtils
.
isNotBlank
(
idfa
)
&&
(
idfa
.
matches
(
didPtn
)
&&
!
idfa
.
matches
(
allZero
)
||
idfa
.
matches
(
md5Ptn
)))
{
...
...
@@ -134,8 +134,9 @@ class AdnRequestSdkEtlDaily extends CommonSparkJob with java.io.Serializable {
}
}
case
"android"
=>
var
dev_tag
=
1
var
dev_tag
=
0
if
(
StringUtils
.
isNotBlank
(
gaid
)
&&
(
gaid
.
matches
(
didPtn
)
&&
!
gaid
.
matches
(
allZero
)
||
gaid
.
matches
(
md5Ptn
)))
{
dev_tag
=
1
linesArr
+=
Row
(
gaid
,
"gaid"
,
platform
,
appId
,
model
,
brand
,
osVersion
,
country
,
strategy
,
region
,
dev_tag
)
if
(
StringUtils
.
isNotBlank
(
oaid
)
&&
(
oaid
.
matches
(
didPtn
)
&&
!
oaid
.
matches
(
allZero
)
||
oaid
.
matches
(
md5Ptn
)))
{
linesArr
+=
Row
(
oaid
,
"oaid"
,
platform
,
appId
,
model
,
brand
,
osVersion
,
country
,
strategy
,
region
,
dev_tag
)
...
...
@@ -152,23 +153,30 @@ class AdnRequestSdkEtlDaily extends CommonSparkJob with java.io.Serializable {
}
}
else
{
if
(
StringUtils
.
isNotBlank
(
oaid
)
&&
(
oaid
.
matches
(
didPtn
)
&&
!
oaid
.
matches
(
allZero
)
||
oaid
.
matches
(
md5Ptn
)))
{
dev_tag
=
1
linesArr
+=
Row
(
oaid
,
"oaid"
,
platform
,
appId
,
model
,
brand
,
osVersion
,
country
,
strategy
,
region
,
dev_tag
)
}
if
(
StringUtils
.
isNotBlank
(
imei
)
&&
(
imei
.
matches
(
imeiPtn
)
||
imei
.
matches
(
md5Ptn
)))
{
if
(
dev_tag
==
1
)
{
dev_tag
=
0
}
else
{
dev_tag
=
1
}
linesArr
+=
Row
(
imei
,
"imei"
,
platform
,
appId
,
model
,
brand
,
osVersion
,
country
,
strategy
,
region
,
dev_tag
)
}
if
(
StringUtils
.
isNotBlank
(
androidId
)
&&
(
androidId
.
matches
(
andriodIdPtn
)
||
androidId
.
matches
(
md5Ptn
)))
{
if
(
dev_tag
==
1
)
{
dev_tag
=
0
}
else
{
dev_tag
=
1
}
linesArr
+=
Row
(
androidId
,
"androidId"
,
platform
,
appId
,
model
,
brand
,
osVersion
,
country
,
strategy
,
region
,
dev_tag
)
}
if
(
StringUtils
.
isNotBlank
(
sysId
))
{
if
(
dev_tag
==
1
)
{
dev_tag
=
0
}
else
{
dev_tag
=
1
}
linesArr
+=
Row
(
sysId
,
"sysid"
,
platform
,
appId
,
model
,
brand
,
osVersion
,
country
,
strategy
,
region
,
dev_tag
)
}
...
...
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