修改--解决data结果为NULL的问题
This commit is contained in:
parent
3cf569af9a
commit
af5adc61d5
|
|
@ -62,6 +62,9 @@ public class OcrRecogServiceImpl implements IOcrRecogService {
|
||||||
getfilePath = convertFilesToBase64(files);
|
getfilePath = convertFilesToBase64(files);
|
||||||
idCardVo = processPythonResponse(getfilePath, recogurl);
|
idCardVo = processPythonResponse(getfilePath, recogurl);
|
||||||
log.info("获得data:{}",idCardVo);
|
log.info("获得data:{}",idCardVo);
|
||||||
|
if(idCardVo.getData() == null){
|
||||||
|
idCardVo.setData(new IdCardVo.Data());
|
||||||
|
}
|
||||||
ajax.put("data",idCardVo);
|
ajax.put("data",idCardVo);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("调用服务失败:{}",e);
|
log.error("调用服务失败:{}",e);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue