Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
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
poc
poc-api
Commits
a4cbaab1
Commit
a4cbaab1
authored
Nov 29, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 应用自动播放
parent
969bd9a7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
AgentApplicationServiceImpl.java
...oc/expose/aggregate/impl/AgentApplicationServiceImpl.java
+2
-2
No files found.
src/main/java/cn/com/poc/expose/aggregate/impl/AgentApplicationServiceImpl.java
View file @
a4cbaab1
...
@@ -275,7 +275,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
...
@@ -275,7 +275,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
@Override
@Override
public
String
autoPlayByAgentId
(
Long
memberId
,
String
agentId
)
{
public
String
autoPlayByAgentId
(
Long
memberId
,
String
agentId
)
{
String
result
=
CommonConstant
.
YOrN
.
N
;
String
result
=
CommonConstant
.
YOrN
.
N
;
String
redisKey
=
AGENT_APPLICATION_
RECOMMEND_QUESTIONS
+
memberId
+
":"
+
agentId
;
String
redisKey
=
AGENT_APPLICATION_
AUTO_PLAY
+
memberId
+
":"
+
agentId
;
if
(
redisService
.
hasKey
(
redisKey
))
{
if
(
redisService
.
hasKey
(
redisKey
))
{
result
=
(
String
)
redisService
.
get
(
redisKey
);
result
=
(
String
)
redisService
.
get
(
redisKey
);
}
else
{
}
else
{
...
@@ -299,7 +299,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
...
@@ -299,7 +299,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
if
(
publishEntity
==
null
)
{
if
(
publishEntity
==
null
)
{
throw
new
I18nMessageException
(
"exception/application.does.not.exist"
);
throw
new
I18nMessageException
(
"exception/application.does.not.exist"
);
}
}
String
redisKey
=
AGENT_APPLICATION_
RECOMMEND_QUESTIONS
+
memberId
+
":"
+
agentId
;
String
redisKey
=
AGENT_APPLICATION_
AUTO_PLAY
+
memberId
+
":"
+
agentId
;
redisService
.
set
(
redisKey
,
autoPlay
,
30
*
60
*
60
*
24
);
redisService
.
set
(
redisKey
,
autoPlay
,
30
*
60
*
60
*
24
);
return
autoPlay
;
return
autoPlay
;
}
}
...
...
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