Commit a4cbaab1 authored by alex yao's avatar alex yao

fix: 应用自动播放

parent 969bd9a7
......@@ -275,7 +275,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
@Override
public String autoPlayByAgentId(Long memberId, String agentId) {
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)) {
result = (String) redisService.get(redisKey);
} else {
......@@ -299,7 +299,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
if (publishEntity == null) {
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);
return autoPlay;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment