|
|
@@ -47,9 +47,10 @@ public abstract class AbstractUserwManager extends AbstractCommManager { |
|
|
|
req.setUrl(imagePath); |
|
|
|
try { |
|
|
|
IdCardOcrResponse res = jsonPostRepeat(req); |
|
|
|
ocrResult.setResult(res.toJson()); |
|
|
|
ocrResult.setResult(res.getBizContent()); |
|
|
|
ocrResult.setCode(res.getRespCode()); |
|
|
|
ocrResultRepo.save(ocrResult); |
|
|
|
res.setOcrResultId(ocrResult.getId()); |
|
|
|
return res; |
|
|
|
} catch (ServiceHandleException e) { |
|
|
|
throw new ManagerException("身份证OCR识别异常"); |
|
|
@@ -62,9 +63,10 @@ public abstract class AbstractUserwManager extends AbstractCommManager { |
|
|
|
req.setUrl(imagePath); |
|
|
|
try { |
|
|
|
VehicleLicenseOcrResponse res = jsonPostRepeat(req); |
|
|
|
ocrResult.setResult(res.toJson()); |
|
|
|
ocrResult.setResult(res.getBizContent()); |
|
|
|
ocrResult.setCode(res.getRespCode()); |
|
|
|
ocrResultRepo.save(ocrResult); |
|
|
|
res.setOcrResultId(ocrResult.getId()); |
|
|
|
return res; |
|
|
|
} catch (ServiceHandleException e) { |
|
|
|
throw new ManagerException("行驶证OCR识别异常"); |
|
|
@@ -76,10 +78,11 @@ public abstract class AbstractUserwManager extends AbstractCommManager { |
|
|
|
req.setUrl(imagePath); |
|
|
|
try { |
|
|
|
BusinessLicenseOcrResponse res = jsonPostRepeat(req); |
|
|
|
ocrResult.setResult(res.toJson()); |
|
|
|
ocrResult.setResult(res.getBizContent()); |
|
|
|
ocrResult.setCode(res.getRespCode()); |
|
|
|
ocrResultRepo.save(ocrResult); |
|
|
|
return res; |
|
|
|
res.setOcrResultId(ocrResult.getId()); |
|
|
|
return res; |
|
|
|
} catch (ServiceHandleException e) { |
|
|
|
throw new ManagerException("营业执照OCR识别异常"); |
|
|
|
} |