Commit 2596e19b authored by alex yao's avatar alex yao

Merge branch 'task/1004454' into release

parents 7380f1b0 306dd349
...@@ -295,6 +295,10 @@ public class AgentApplicationServiceImpl implements AgentApplicationService { ...@@ -295,6 +295,10 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
@Override @Override
public String enableAutoPlay(Long memberId, String agentId, String autoPlay) { public String enableAutoPlay(Long memberId, String agentId, String autoPlay) {
BizAgentApplicationPublishEntity publishEntity = bizAgentApplicationPublishService.getByAgentId(agentId);
if (publishEntity == null) {
throw new I18nMessageException("exception/application.does.not.exist");
}
String redisKey = AGENT_APPLICATION_RECOMMEND_QUESTIONS + memberId + ":" + agentId; String redisKey = AGENT_APPLICATION_RECOMMEND_QUESTIONS + memberId + ":" + agentId;
redisService.set(redisKey, autoPlay, 30 * 60 * 60 * 24); redisService.set(redisKey, autoPlay, 30 * 60 * 60 * 24);
return autoPlay; 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