deason 10 ay önce
ebeveyn
işleme
9092fe3db9

+ 3 - 2
examcloud-core-oe-task-service/src/main/java/cn/com/qmth/examcloud/core/oe/task/service/impl/ExamCaptureQueueServiceImpl.java

@@ -1,6 +1,7 @@
 package cn.com.qmth.examcloud.core.oe.task.service.impl;
 
 import cn.com.qmth.examcloud.api.commons.enums.FaceApiProvider;
+import cn.com.qmth.examcloud.commons.util.StringUtil;
 import cn.com.qmth.examcloud.core.oe.student.dao.ExamCaptureQueueRepo;
 import cn.com.qmth.examcloud.core.oe.student.dao.ExamCaptureRepo;
 import cn.com.qmth.examcloud.core.oe.student.dao.entity.ExamCaptureEntity;
@@ -197,7 +198,7 @@ public class ExamCaptureQueueServiceImpl implements ExamCaptureQueueService {
             return true;
         } catch (Exception e) {
             queue.setErrorNum(curErrorNum + 1);
-            queue.setErrorMsg("人脸比对异常!" + e.getMessage());
+            queue.setErrorMsg(StringUtil.substring("人脸比对异常!" + e.getMessage(), 200));
 
             log.error("人脸比对异常!examRecordDataId:{} queueId:{} errorNum:{} error:{}",
                     queue.getExamRecordDataId(), queue.getId(), queue.getErrorNum(), e.getMessage());
@@ -224,7 +225,7 @@ public class ExamCaptureQueueServiceImpl implements ExamCaptureQueueService {
             return true;
         } catch (Exception e) {
             queue.setErrorNum(curErrorNum + 1);
-            queue.setErrorMsg("人脸真实性检测异常!" + e.getMessage());
+            queue.setErrorMsg(StringUtil.substring("人脸真实性检测异常!" + e.getMessage(), 200));
 
             log.error("人脸真实性检测异常!examRecordDataId:{} queueId:{} errorNum:{} error:{}",
                     queue.getExamRecordDataId(), queue.getId(), queue.getErrorNum(), e.getMessage());