考试提交调用加catch

This commit is contained in:
670788339
2025-03-13 10:03:21 +08:00
parent c8ffdd561f
commit 58d6f49006
2 changed files with 10 additions and 5 deletions

View File

@@ -107,13 +107,17 @@ public class AloneExamServiceImpl implements IAloneExamService{
// }
}
ExamStudyRecordParam param = new ExamStudyRecordParam();
param.setTestId(aea.getTestId());
param.setAid(aea.getAid());
thirdApi.syncExamStudyRecord(param);
try {
ExamStudyRecordParam param = new ExamStudyRecordParam();
param.setTestId(aea.getTestId());
param.setAid(aea.getAid());
thirdApi.syncExamStudyRecord(param);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
@Override
@Transactional

View File

@@ -50,6 +50,7 @@ public class StudyCourseTask {
// 5. 过滤条件:剩余时间 >= 29天23小时30分钟转换为秒
// 总需时间 = (30天 - 30分钟) = 29天23小时30分钟 = 2590200秒
// 5分钟 300秒 || 2592000 - 300 = 2591700
if (ttl <= 2590200) {
try {
// 6. 提取studyContentId