Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
marketing
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
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
dingjy
marketing
Commits
7e0af7f6
Commit
7e0af7f6
authored
Mar 27, 2024
by
宋新宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
短剧APP归因
parent
284e8ecd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
3 deletions
+15
-3
DyVideoUniversalProcess.java
...m/lwby/marketing/att/dyvideo/DyVideoUniversalProcess.java
+6
-0
DyvideoDeduFlow.java
...om/lwby/marketing/att/dyvideo/handle/DyvideoDeduFlow.java
+1
-1
UploadDyVideoCallFlow.java
...y/marketing/att/dyvideo/handle/UploadDyVideoCallFlow.java
+1
-1
VideoAppUniversalProcess.java
...lwby/marketing/att/videoapp/VideoAppUniversalProcess.java
+6
-0
UploadVideoAppCallFlow.java
...marketing/att/videoapp/handle/UploadVideoAppCallFlow.java
+1
-1
No files found.
src/main/java/com/lwby/marketing/att/dyvideo/DyVideoUniversalProcess.java
View file @
7e0af7f6
...
...
@@ -107,6 +107,12 @@ public class DyVideoUniversalProcess extends UniversalProcess {
:
String
.
format
(
"fc_%d_%d_%s"
,
action
.
getUserId
(),
action
.
getPlatformId
(),
action
.
getMediaName
());
}
public
int
getExpire
(
StoryNovelAction
action
)
{
return
Objects
.
equals
(
action
.
getType
(),
CallBackType
.
active
.
getType
())
?
60
*
60
*
24
:
60
*
60
*
24
*
7
;
}
public
ThirdAccountDy
getDyAccessToken
(
String
client_id
,
String
client_secret
,
String
dyTokenUrl
)
{
Map
<
String
,
String
>
upMap
=
new
HashMap
<>();
upMap
.
put
(
"client_key"
,
client_id
);
...
...
src/main/java/com/lwby/marketing/att/dyvideo/handle/DyvideoDeduFlow.java
View file @
7e0af7f6
...
...
@@ -65,7 +65,7 @@ public class DyvideoDeduFlow extends NodeSwitchFlow<StoryNovelAction> {
action
.
getPlatformId
(),
action
.
getChannelId
(),
action
.
getPlanId
(),
sprDedu
,
channelTotalCount
,
channelCallbackCount
,
1
);
}
else
{
up
.
notifyResult
(
action
,
"ocpc_behavior_test"
,
AttributionStatus
.
NORMAL_DEDUCTION_CALLBACK
);
up
.
set
(
up
.
getFirstCheckerKey
(
action
),
60
*
60
*
24
,
"1"
);
up
.
set
(
up
.
getFirstCheckerKey
(
action
),
up
.
getExpire
(
action
),
"1"
);
DYVIDEO_SYS_LOG
.
info
(
"ChannelAttributionFlow.process0.deduction doing dynamic, platformId = {}, channel = {}, planId={}, sprDedu = {}, channelTotalCount = {}, channelCallbackCount = {}, v = {}"
,
action
.
getPlatformId
(),
action
.
getChannelId
(),
action
.
getPlanId
(),
sprDedu
,
channelTotalCount
,
channelCallbackCount
,
0
);
...
...
src/main/java/com/lwby/marketing/att/dyvideo/handle/UploadDyVideoCallFlow.java
View file @
7e0af7f6
...
...
@@ -26,7 +26,7 @@ public class UploadDyVideoCallFlow extends NodeFlow<StoryNovelAction> {
if
(
success
)
{
action
.
getVideoUpload
().
setActiveTime
(
System
.
currentTimeMillis
());
up
.
notifyResult
(
action
,
type
.
getTopic
()+
"_test"
,
type
.
getStatus
());
up
.
set
(
up
.
getFirstCheckerKey
(
action
),
60
*
60
*
24
,
"1"
);
up
.
set
(
up
.
getFirstCheckerKey
(
action
),
up
.
getExpire
(
action
)
,
"1"
);
}
}
}
src/main/java/com/lwby/marketing/att/videoapp/VideoAppUniversalProcess.java
View file @
7e0af7f6
...
...
@@ -102,6 +102,12 @@ public class VideoAppUniversalProcess extends UniversalProcess {
:
String
.
format
(
"fc_%d_%d_%s"
,
action
.
getDeviceId
(),
action
.
getPlatformId
(),
action
.
getMediaName
());
}
public
int
getExpire
(
NovelAction
action
)
{
return
Objects
.
equals
(
action
.
getType
(),
CallBackType
.
active
.
getType
())
?
60
*
60
*
24
:
60
*
60
*
24
*
7
;
}
public
String
buildKey
(
Integer
platformId
,
String
deviceId
)
{
return
String
.
format
(
"market:activeness:30:%d:%s"
,
platformId
,
deviceId
);
}
...
...
src/main/java/com/lwby/marketing/att/videoapp/handle/UploadVideoAppCallFlow.java
View file @
7e0af7f6
...
...
@@ -25,7 +25,7 @@ public class UploadVideoAppCallFlow extends NodeFlow<NovelAction> {
boolean
success
=
action
.
getMedia
().
notify
(
action
);
if
(
success
)
{
up
.
notifyResult
(
action
,
type
.
getTopic
()+
"_test"
,
type
.
getStatus
());
up
.
set
(
up
.
getFirstCheckerKey
(
action
),
60
*
60
*
24
,
"1"
);
up
.
set
(
up
.
getFirstCheckerKey
(
action
),
up
.
getExpire
(
action
),
"1"
);
}
}
}
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