|
@@ -464,10 +464,23 @@ public class ExamCaptureServiceImpl implements ExamCaptureService {
|
|
|
compareWithTokenAndImageUrl(baseFaceToken,
|
|
|
fileUrl, fileUrl.replace(main, backup));
|
|
|
facePPResult = jsonHttpResponseHolder.getRespBody();
|
|
|
+ } catch (StatusException e) {
|
|
|
+ //如果错误码是801,802,803直接结束,不重试
|
|
|
+ if (e.getCode().equals("801") || e.getCode().equals("802") || e.getCode().equals("803")) {
|
|
|
+ compareFaceSyncInfo.setIsPass(false);
|
|
|
+ compareFaceSyncInfo.setExistsSystemError(true);
|
|
|
+ compareFaceSyncInfo.setErrorMsg(e.getDesc());
|
|
|
+
|
|
|
+ captureLog.error("[COMPARE_FACE_SYNC] face++人脸比对无法处理的图片地址,errMsg=" + e.getDesc(), e);
|
|
|
+ return compareFaceSyncInfo;
|
|
|
+ }
|
|
|
+ throw e;
|
|
|
} catch (Exception e) {
|
|
|
compareFaceSyncInfo.setIsPass(false);
|
|
|
compareFaceSyncInfo.setExistsSystemError(true);
|
|
|
compareFaceSyncInfo.setErrorMsg("系统异常");
|
|
|
+
|
|
|
+ captureLog.error("[COMPARE_FACE_SYNC] 未处理的系统异常,errMsg=" + e.getMessage(), e);
|
|
|
return compareFaceSyncInfo;
|
|
|
}
|
|
|
if (facePPResult.containsKey(Constants.ERROR_MSG)) {
|