master
周文涛 2 years ago
parent d00695773f
commit 81c0a4df49

@ -233,8 +233,6 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
updateWrapper.eq(OcrIdentify::getId, id); updateWrapper.eq(OcrIdentify::getId, id);
updateWrapper.set(OcrIdentify::getEndTime, new Date()); updateWrapper.set(OcrIdentify::getEndTime, new Date());
updateWrapper.set(OcrIdentify::getStatus, "1"); updateWrapper.set(OcrIdentify::getStatus, "1");
super.update(updateWrapper);
//回调 无量云接口 //回调 无量云接口
if(true){ if(true){
OcrIdentify ocrIdentify = super.getById(id); OcrIdentify ocrIdentify = super.getById(id);
@ -279,11 +277,16 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
log.debug("请求无量云回调接口"); log.debug("请求无量云回调接口");
JSONObject semanticResponseJson = RestUtil.post("https://192.168.1.21:8686/api/task/image/ocr/callback", requestBody); JSONObject semanticResponseJson = RestUtil.post("https://192.168.1.21:8686/api/task/image/ocr/callback", requestBody);
log.error(semanticResponseJson.toJSONString()); log.error(semanticResponseJson.toJSONString());
if (semanticResponseJson!=null) {
updateWrapper.set(OcrIdentify::getNoticeStatus,"1");
}
}else{
updateWrapper.set(OcrIdentify::getNoticeStatus,"0");
} }
} }
} }
super.update(updateWrapper);
} }

Loading…
Cancel
Save