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