master
周文涛 2 years ago
parent 84f3ca2808
commit 9eaaf47ebb

@ -210,6 +210,7 @@ public class ApiController {
if (identifyIdList.size()>0) {
ocrIdentifyDetailService.remove(new LambdaQueryWrapper<OcrIdentifyDetail>().in(OcrIdentifyDetail::getIdentifyId,identifyIdList));
for (OcrIdentify ocrIdentify : list) {
log.info("打印ocrIdentifyId:",ocrIdentify.getId());
List<String> identifyUrlList = FileOUtils.fileLists(null, ocrIdentify.getIdentifyUrl());
ocrIdentifyService.postSemantic(ocrIdentify,identifyUrlList);
}

@ -232,7 +232,9 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
requestBody.put("taskType", "identify");
requestBody.put("parameter", id + "," + taskId + "," + identifyUrl);
//发送任务请求 到 redis
pushTask(requestBody);
Result result = pushTask(requestBody);
log.info("---------------");
log.info(result.toString());
/*semanticResponseJson = RestUtil.post(OcrConstant.api_test_identify_url, requestBody);
semanticResponseJson.put("task_id", id);
this.getSemanticInfo(semanticResponseJson);*/

Loading…
Cancel
Save