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
a9ab4812
Commit
a9ab4812
authored
Apr 09, 2024
by
宋新宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '7-短剧app关键行为优化' into 'release_20240408_01'
dy短剧关键行为优化 See merge request
!38
parents
ec467a12
5517ca9a
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 @
a9ab4812
...
...
@@ -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 @
a9ab4812
...
...
@@ -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 @
a9ab4812
...
...
@@ -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 @
a9ab4812
...
...
@@ -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