瀏覽代碼

rename cacheKey illegal_data

deason 3 年之前
父節點
當前提交
c9785b345b

+ 3 - 1
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamRecordQuestionsServiceImpl.java

@@ -18,6 +18,7 @@ import cn.com.qmth.examcloud.question.commons.core.paper.DefaultQuestionStructur
 import cn.com.qmth.examcloud.question.commons.core.paper.DefaultQuestionUnitWrapper;
 import cn.com.qmth.examcloud.question.commons.core.question.DefaultQuestionStructure;
 import cn.com.qmth.examcloud.question.commons.core.question.DefaultQuestionUnit;
+import cn.com.qmth.examcloud.support.Constants;
 import cn.com.qmth.examcloud.support.cache.CacheHelper;
 import cn.com.qmth.examcloud.support.cache.bean.QuestionCacheBean;
 import cn.com.qmth.examcloud.support.examing.*;
@@ -189,7 +190,8 @@ public class ExamRecordQuestionsServiceImpl implements ExamRecordQuestionsServic
         long examRecordDataId = examSessionInfo.getExamRecordDataId();
 
         if (StringUtils.isEmpty(referer) || StringUtils.isEmpty(agent) || !agent.contains("electron-exam-shell")) {
-            redisClient.set("OE_SESSION_WARN_" + examSessionInfo.getExamRecordDataId(), true, 12 * 60 * 60);
+            String cacheKey = Constants.OE_DISCIPLINE_ILLEGAL_DATA + examSessionInfo.getExamRecordDataId();
+            redisClient.set(cacheKey, true, 6 * 60 * 60);
         }
 
         for (ExamStudentQuestionInfo examQuestionInfo : examQuestionInfos) {