|
@@ -8,6 +8,7 @@ import cn.com.qmth.examcloud.commons.util.JsonUtil;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.bean.StuExamQuestionBean;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.request.GetExamRecordQuestionsReq;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.response.GetExamRecordQuestionsResp;
|
|
|
+import cn.com.qmth.examcloud.core.oe.student.base.OeConstants;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.base.utils.Check;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.bean.ExamStudentQuestionAnswerInfo;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.bean.ExamStudentQuestionInfo;
|
|
@@ -93,7 +94,7 @@ public class ExamRecordQuestionsServiceImpl implements ExamRecordQuestionsServic
|
|
|
@Override
|
|
|
public void saveExamQuestion(Long examRecordDataId, Integer order, ExamQuestion question) {
|
|
|
String key = RedisKeyHelper.getBuilder().studentAnswerKey(examRecordDataId, order);
|
|
|
- redisClient.set(key, question, 2592000);
|
|
|
+ redisClient.set(key, question, OeConstants.TIME_OUT_7_DAY);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -320,7 +321,7 @@ public class ExamRecordQuestionsServiceImpl implements ExamRecordQuestionsServic
|
|
|
|
|
|
if (StringUtils.isEmpty(referer) || StringUtils.isEmpty(agent) || !agent.contains(Constants.ELECTRON_EXAM_SHELL)) {
|
|
|
String cacheKey = CacheConstants.CACHE_OE_DISCIPLINE_ILLEGAL_DATA + examSessionInfo.getExamRecordDataId();
|
|
|
- redisClient.set(cacheKey, true, 6 * 60 * 60);
|
|
|
+ redisClient.set(cacheKey, true, OeConstants.TIME_OUT_1_DAY);
|
|
|
}
|
|
|
|
|
|
for (ExamStudentQuestionInfo examQuestionInfo : examQuestionInfos) {
|