|
|
|
|
|
|
|
|
res.setBirthday(birthday); |
|
|
res.setBirthday(birthday); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
res.setCode("0"); |
|
|
|
|
|
res.setRespCode("0000"); |
|
|
res.setRespCode("0000"); |
|
|
res.setRespMessage("ocr识别成功"); |
|
|
res.setRespMessage("ocr识别成功"); |
|
|
res.setStatus("000000"); |
|
|
|
|
|
res.setStatusDesc("成功"); |
|
|
|
|
|
return res; |
|
|
return res; |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("解析百度ocr返回值异常"); |
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("解析百度ocr返回值异常"); |
|
|
|
|
|
|
|
|
res.setCodeNo(getValue(wordsResultObj, "证芯编号")); |
|
|
res.setCodeNo(getValue(wordsResultObj, "证芯编号")); |
|
|
res.setFuel(getValue(wordsResultObj, "燃油类型")); |
|
|
res.setFuel(getValue(wordsResultObj, "燃油类型")); |
|
|
|
|
|
|
|
|
res.setCode("0"); |
|
|
|
|
|
res.setRespCode("0000"); |
|
|
res.setRespCode("0000"); |
|
|
res.setRespMessage("ocr识别成功"); |
|
|
res.setRespMessage("ocr识别成功"); |
|
|
res.setStatusDesc("成功"); |
|
|
|
|
|
res.setStatus("000000"); |
|
|
|
|
|
return res; |
|
|
return res; |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("解析百度ocr返回值异常"); |
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("解析百度ocr返回值异常"); |
|
|
|
|
|
|
|
|
res.setRegAuthority(getValue(wordsResultObj, "登记机关")); |
|
|
res.setRegAuthority(getValue(wordsResultObj, "登记机关")); |
|
|
res.setType(getValue(wordsResultObj, "类型")); |
|
|
res.setType(getValue(wordsResultObj, "类型")); |
|
|
|
|
|
|
|
|
res.setCode("0"); |
|
|
|
|
|
res.setRespCode("0000"); |
|
|
res.setRespCode("0000"); |
|
|
res.setRespMessage("ocr识别成功"); |
|
|
res.setRespMessage("ocr识别成功"); |
|
|
res.setStatusDesc("成功"); |
|
|
|
|
|
res.setStatus("000000"); |
|
|
|
|
|
return res; |
|
|
return res; |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("解析百度ocr返回值异常"); |
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("解析百度ocr返回值异常"); |