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
643aeca5
Commit
643aeca5
authored
Apr 08, 2024
by
宋新宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '7-短剧app关键行为优化' into 'release_20240408_01'
短剧app关键行为优化 See merge request
!34
parents
704f5769
157a76d5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
VideoAppUniversalProcess.java
...lwby/marketing/att/videoapp/VideoAppUniversalProcess.java
+2
-2
OldMarketRedisConfig.java
...in/java/com/lwby/marketing/conf/OldMarketRedisConfig.java
+4
-0
No files found.
src/main/java/com/lwby/marketing/att/videoapp/VideoAppUniversalProcess.java
View file @
643aeca5
...
@@ -35,7 +35,7 @@ public class VideoAppUniversalProcess extends UniversalProcess {
...
@@ -35,7 +35,7 @@ public class VideoAppUniversalProcess extends UniversalProcess {
private
static
final
Logger
VIDEOAPP_ERROR_LOG
=
LoggerFactory
.
getLogger
(
"videoapp.error"
);
private
static
final
Logger
VIDEOAPP_ERROR_LOG
=
LoggerFactory
.
getLogger
(
"videoapp.error"
);
@Resource
@Resource
private
RedisTemplate
<
Object
,
Object
>
oldMarketRedisTemplate
;
private
RedisTemplate
<
String
,
String
>
oldMarketRedisTemplate
;
/**
/**
* 通知处理结果
* 通知处理结果
...
@@ -69,7 +69,7 @@ public class VideoAppUniversalProcess extends UniversalProcess {
...
@@ -69,7 +69,7 @@ public class VideoAppUniversalProcess extends UniversalProcess {
}
}
public
<
T
>
T
getOldMarket
(
Class
<
T
>
clazz
,
String
key
)
{
public
<
T
>
T
getOldMarket
(
Class
<
T
>
clazz
,
String
key
)
{
String
value
=
(
String
)
oldMarketRedisTemplate
.
opsForValue
().
get
(
key
);
String
value
=
oldMarketRedisTemplate
.
opsForValue
().
get
(
key
);
if
(!
Objects
.
isNull
(
value
)){
if
(!
Objects
.
isNull
(
value
)){
return
JSON
.
parseObject
(
value
,
clazz
);
return
JSON
.
parseObject
(
value
,
clazz
);
}
}
...
...
src/main/java/com/lwby/marketing/conf/OldMarketRedisConfig.java
View file @
643aeca5
...
@@ -8,6 +8,7 @@ import org.springframework.data.redis.connection.RedisConnectionFactory;
...
@@ -8,6 +8,7 @@ import org.springframework.data.redis.connection.RedisConnectionFactory;
import
org.springframework.data.redis.connection.RedisStandaloneConfiguration
;
import
org.springframework.data.redis.connection.RedisStandaloneConfiguration
;
import
org.springframework.data.redis.connection.jedis.JedisConnectionFactory
;
import
org.springframework.data.redis.connection.jedis.JedisConnectionFactory
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer
;
import
org.springframework.data.redis.serializer.StringRedisSerializer
;
import
org.springframework.data.redis.serializer.StringRedisSerializer
;
@Configuration
@Configuration
...
@@ -34,6 +35,9 @@ public class OldMarketRedisConfig {
...
@@ -34,6 +35,9 @@ public class OldMarketRedisConfig {
StringRedisSerializer
stringRedisSerializer
=
new
StringRedisSerializer
();
StringRedisSerializer
stringRedisSerializer
=
new
StringRedisSerializer
();
template
.
setKeySerializer
(
stringRedisSerializer
);
template
.
setKeySerializer
(
stringRedisSerializer
);
template
.
setValueSerializer
(
stringRedisSerializer
);
template
.
setValueSerializer
(
stringRedisSerializer
);
template
.
setHashKeySerializer
(
new
StringRedisSerializer
());
template
.
setHashValueSerializer
(
new
Jackson2JsonRedisSerializer
<>(
Object
.
class
));
template
.
setConnectionFactory
(
redisConnectionFactory
);
template
.
setConnectionFactory
(
redisConnectionFactory
);
return
template
;
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