deason 2 年之前
父节点
当前提交
ed73873f0d

+ 2 - 2
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/impl/ExtractConfigServiceImpl.java

@@ -200,8 +200,8 @@ public class ExtractConfigServiceImpl implements ExtractConfigService {
         Example<RandomPaper> queryExample = Example.of(query);
         boolean exists = randomPaperRepo.exists(queryExample);
         if(!exists){
-            LOG.warn("随机抽题模板错误! courseId:{} randomPaperId:{}", course.getId(), extractConfig.getRandomPaperId());
-            throw new StatusException("500", "请选择正确的随机抽题模板!");
+            LOG.warn("随机抽题模板选择错误,与当前课程不匹配! courseId:{} randomPaperId:{}", course.getId(), extractConfig.getRandomPaperId());
+            throw new StatusException("500", "随机抽题模板选择错误,与当前课程不匹配!");
         }
 
 		// 新增,id为空