修改--解决data结果为NULL的问题

This commit is contained in:
tjxt 2024-07-30 15:28:16 +08:00
parent 3cf569af9a
commit af5adc61d5
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ public class OcrRecogServiceImpl implements IOcrRecogService {
getfilePath = convertFilesToBase64(files);
idCardVo = processPythonResponse(getfilePath, recogurl);
log.info("获得data:{}",idCardVo);
if(idCardVo.getData() == null){
idCardVo.setData(new IdCardVo.Data());
}
ajax.put("data",idCardVo);
} catch (Exception e) {
log.error("调用服务失败:{}",e);