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

This commit is contained in:
tjxt 2024-07-30 15:15:22 +08:00
parent 0915176b7b
commit 3cf569af9a
1 changed files with 3 additions and 4 deletions

View File

@ -64,11 +64,10 @@ public class OcrRecogServiceImpl implements IOcrRecogService {
log.info("获得data:{}",idCardVo);
ajax.put("data",idCardVo);
} catch (Exception e) {
log.error("调用大模型失败:{}",e);
ajax.put("601", "调用大模型服务出错");
e.printStackTrace();
log.error("调用服务失败:{}",e);
ajax.put("601", "调用服务出错");
}
if (idCardVo != null) {
if (idCardVo.getData() != null) {
char ifComplete = '否';
if (idCardVo.getCode() == 20000) {
ifComplete = '是';