|
@@ -5,7 +5,6 @@ import com.aliyun.oss.common.utils.BinaryUtil;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import com.google.gson.Gson;
|
|
|
import com.qmth.themis.business.bean.admin.OpenExamBean;
|
|
|
import com.qmth.themis.business.bean.exam.*;
|
|
|
import com.qmth.themis.business.cache.*;
|
|
@@ -818,8 +817,8 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
}
|
|
|
ret = new ExamResumeBean();
|
|
|
ret.setDurationSeconds(ExamRecordCacheUtil.getDurationSeconds(recordId));
|
|
|
- ret.setPaperUrl(ossUtil.getPrivateUrl(ep.getPaperPath()));
|
|
|
- ret.setStructUrl(ossUtil.getPrivateUrl(ep.getStructPath()));
|
|
|
+// ret.setPaperUrl(ossUtil.getPrivateUrl(ep.getPaperPath()));
|
|
|
+// ret.setStructUrl(ossUtil.getPrivateUrl(ep.getStructPath()));
|
|
|
ret.setHasAudio((ep.getHasAudio() != null && ep.getHasAudio().intValue() == 1 ? true : false));
|
|
|
ret.setAudioPlayCount(ep.getAudioPlayCount());
|
|
|
ret.setMonitorAppId(tencentYunUtil.getTencentYunDomain().getAppId());
|
|
@@ -827,6 +826,15 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
ret.setMonitorUserId("s_" + tbSession.getId());
|
|
|
ret.setMonitorUserSig(tencentYunUtil.getSign(ret.getMonitorUserId(), SystemConstant.TENCENT_EXPIRE_TIME));
|
|
|
|
|
|
+ ExamActivityCacheBean ac = teExamActivityService.getExamActivityCacheBean(es.getExamActivityId());
|
|
|
+ ExamCourseCacheBean examCourseCacheBean = teExamCourseService.getExamCourseCacheBean(es.getExamId(), es.getCourseCode());
|
|
|
+ TEExamActivityDto teExamActivityDto = new TEExamActivityDto(ec, ac, es,
|
|
|
+ examStudentId, examCourseCacheBean, ExamRecordCacheUtil.getStartTime(recordId),
|
|
|
+ ExamRecordCacheUtil.getEndTime(recordId), ExamRecordCacheUtil.getOpeningSeconds(recordId),
|
|
|
+ ExamRecordCacheUtil.getMinDurationSeconds(recordId),
|
|
|
+ ExamRecordCacheUtil.getMaxDurationSeconds(recordId), ExamRecordCacheUtil.getForceFinish(recordId));
|
|
|
+ ret.setTeExamActivityDto(teExamActivityDto);
|
|
|
+
|
|
|
ExamStudentPaperStructCacheBean struct = (ExamStudentPaperStructCacheBean) redisUtil
|
|
|
.get(RedisKeyHelper.studentPaperStructKey(recordId));
|
|
|
if (struct != null) {
|