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
5517ca9a
Commit
5517ca9a
authored
Apr 09, 2024
by
宋新宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dy短剧关键行为优化
parent
870c5e6d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
DyVideoUniversalProcess.java
...m/lwby/marketing/att/dyvideo/DyVideoUniversalProcess.java
+4
-5
DyvideoBehaviorFlow.java
...wby/marketing/att/dyvideo/handle/DyvideoBehaviorFlow.java
+1
-1
BiRedisConfig.java
src/main/java/com/lwby/marketing/conf/BiRedisConfig.java
+2
-0
RedisConfig.java
src/main/java/com/lwby/marketing/conf/RedisConfig.java
+2
-0
No files found.
src/main/java/com/lwby/marketing/att/dyvideo/DyVideoUniversalProcess.java
View file @
5517ca9a
...
...
@@ -83,8 +83,7 @@ public class DyVideoUniversalProcess extends UniversalProcess {
);
}
@Override
public
<
T
>
T
get
(
Class
<
T
>
clazz
,
String
key
)
{
public
<
T
>
T
getOld
(
Class
<
T
>
clazz
,
String
key
)
{
String
value
=
oldMarketRedisTemplate
.
opsForValue
().
get
(
key
);
if
(!
Objects
.
isNull
(
value
)){
return
JSON
.
parseObject
(
value
,
clazz
);
...
...
@@ -229,9 +228,9 @@ public class DyVideoUniversalProcess extends UniversalProcess {
tvcCount
+=
costI
;
}
hset
New
(
upcBehaviorKey
,
"tvc"
,
60
*
60
*
24
*
3
,
JSON
.
toJSONString
(
tvcCount
));
hset
New
(
upcBehaviorKey
,
"mvc"
,
60
*
60
*
24
*
3
,
JSON
.
toJSONString
(
motivateCount
));
hset
New
(
upcBehaviorKey
,
"vec"
,
60
*
60
*
24
*
3
,
JSON
.
toJSONString
(
pecpmCount
));
hset
(
upcBehaviorKey
,
"tvc"
,
60
*
60
*
24
*
3
,
JSON
.
toJSONString
(
tvcCount
));
hset
(
upcBehaviorKey
,
"mvc"
,
60
*
60
*
24
*
3
,
JSON
.
toJSONString
(
motivateCount
));
hset
(
upcBehaviorKey
,
"vec"
,
60
*
60
*
24
*
3
,
JSON
.
toJSONString
(
pecpmCount
));
}
...
...
src/main/java/com/lwby/marketing/att/dyvideo/handle/DyvideoBehaviorFlow.java
View file @
5517ca9a
...
...
@@ -96,7 +96,7 @@ public class DyvideoBehaviorFlow extends NodeSwitchFlow<StoryNovelAction> {
ThirdAccountDy
thirdAccountDy
=
null
;
DYVIDEO_SYS_LOG
.
info
(
"thirdAccountDy url={}"
,
Objects
.
equals
(
env
.
getActiveProfiles
()[
0
],
"prod"
)
?
tokenDyProdUrl
:
tokenDyDevUrl
);
if
(
up
.
existsOld
(
tokenDy
))
{
thirdAccountDy
=
up
.
get
(
ThirdAccountDy
.
class
,
tokenDy
);
thirdAccountDy
=
up
.
get
Old
(
ThirdAccountDy
.
class
,
tokenDy
);
}
else
{
thirdAccountDy
=
up
.
getDyAccessToken
(
dyMarketPlatformAppIdList
.
get
(
0
),
dyMarketPlatformAppIdList
.
get
(
1
),
Objects
.
equals
(
env
.
getActiveProfiles
()[
0
],
"prod"
)
?
tokenDyProdUrl
:
tokenDyDevUrl
);
...
...
src/main/java/com/lwby/marketing/conf/BiRedisConfig.java
View file @
5517ca9a
...
...
@@ -38,6 +38,8 @@ public class BiRedisConfig {
StringRedisSerializer
stringRedisSerializer
=
new
StringRedisSerializer
();
template
.
setKeySerializer
(
stringRedisSerializer
);
template
.
setValueSerializer
(
stringRedisSerializer
);
template
.
setHashKeySerializer
(
stringRedisSerializer
);
template
.
setHashValueSerializer
(
stringRedisSerializer
);
template
.
setConnectionFactory
(
redisConnectionFactory
);
return
template
;
}
...
...
src/main/java/com/lwby/marketing/conf/RedisConfig.java
View file @
5517ca9a
...
...
@@ -34,6 +34,8 @@ public class RedisConfig {
StringRedisSerializer
stringRedisSerializer
=
new
StringRedisSerializer
();
template
.
setKeySerializer
(
stringRedisSerializer
);
template
.
setValueSerializer
(
stringRedisSerializer
);
template
.
setHashKeySerializer
(
stringRedisSerializer
);
template
.
setHashValueSerializer
(
stringRedisSerializer
);
template
.
setConnectionFactory
(
redisConnectionFactory
);
return
template
;
}
...
...
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