|
@@ -34,6 +34,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
+import java.util.Optional;
|
|
|
|
|
|
/**
|
|
|
* 处理考试抓拍队列
|
|
@@ -125,7 +126,7 @@ public class ExamCaptureQueueServiceImpl implements ExamCaptureQueueService {
|
|
|
queue.setIsStranger(false);
|
|
|
|
|
|
if (!faceCompareResult.isFacePass()) {
|
|
|
- extMsg = "比对:" + faceCompareResult.getError();
|
|
|
+ extMsg = "比对:" + Optional.ofNullable(faceCompareResult.getError()).orElse("不通过");
|
|
|
queue.setExtMsg(extMsg);
|
|
|
}
|
|
|
|
|
@@ -174,7 +175,7 @@ public class ExamCaptureQueueServiceImpl implements ExamCaptureQueueService {
|
|
|
}
|
|
|
|
|
|
if (!faceLivenessResult.isFacePass()) {
|
|
|
- extMsg = extMsg + " 活检:" + faceLivenessResult.getError();
|
|
|
+ extMsg = extMsg + " 活检:" + Optional.ofNullable(faceLivenessResult.getError()).orElse("不通过");
|
|
|
queue.setExtMsg(extMsg);
|
|
|
}
|
|
|
} catch (Exception e) {
|