|
@@ -16,6 +16,7 @@ import com.qmth.themis.business.entity.TOeFaceVerifyHistory;
|
|
import com.qmth.themis.business.enums.ExamTypeEnum;
|
|
import com.qmth.themis.business.enums.ExamTypeEnum;
|
|
import com.qmth.themis.business.enums.VerifyExceptionEnum;
|
|
import com.qmth.themis.business.enums.VerifyExceptionEnum;
|
|
import com.qmth.themis.business.service.TOeExamBreakHistoryService;
|
|
import com.qmth.themis.business.service.TOeExamBreakHistoryService;
|
|
|
|
+import com.qmth.themis.business.service.TOeExamRecordService;
|
|
import com.qmth.themis.business.service.TOeFaceVerifyHistoryService;
|
|
import com.qmth.themis.business.service.TOeFaceVerifyHistoryService;
|
|
import com.qmth.themis.business.util.RedisUtil;
|
|
import com.qmth.themis.business.util.RedisUtil;
|
|
import com.qmth.themis.common.contanst.Constants;
|
|
import com.qmth.themis.common.contanst.Constants;
|
|
@@ -37,6 +38,9 @@ public class TOeFaceVerifyHistoryServiceImpl extends ServiceImpl<TOeFaceVerifyHi
|
|
@Resource
|
|
@Resource
|
|
TOeExamBreakHistoryService examBreakHistoryService;
|
|
TOeExamBreakHistoryService examBreakHistoryService;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ TOeExamRecordService examRecordService;
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public FaceVerifyBean verify(Long recordId, String type, String photoUrl, Integer faceCount, Double similarity,
|
|
public FaceVerifyBean verify(Long recordId, String type, String photoUrl, Integer faceCount, Double similarity,
|
|
Double realness, Long time, String exception) {
|
|
Double realness, Long time, String exception) {
|
|
@@ -56,6 +60,8 @@ public class TOeFaceVerifyHistoryServiceImpl extends ServiceImpl<TOeFaceVerifyHi
|
|
ret.setUpdateTime(new Date().getTime());
|
|
ret.setUpdateTime(new Date().getTime());
|
|
if(ExamTypeEnum.RECOVER.equals(cache.getType())) {
|
|
if(ExamTypeEnum.RECOVER.equals(cache.getType())) {
|
|
examBreakHistoryService.saveAuthenticationResult(recordId, cache.getId(), cache.getException());
|
|
examBreakHistoryService.saveAuthenticationResult(recordId, cache.getId(), cache.getException());
|
|
|
|
+ }else if(ExamTypeEnum.FIRST.equals(cache.getType())) {
|
|
|
|
+ examRecordService.saveAuthenticationResultOnStart(recordId, cache.getId(), cache.getException());
|
|
}
|
|
}
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|