|
|
@ -74,6 +74,7 @@ public class ApiController {
|
|
|
|
// if (!"test".equals(profiles)) {
|
|
|
|
// if (!"test".equals(profiles)) {
|
|
|
|
// return Result.error("当前环境不支持该功能,请访问测试环境");
|
|
|
|
// return Result.error("当前环境不支持该功能,请访问测试环境");
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
log.info("api接口-通用识别请求开始,{}",requestBody);
|
|
|
|
if (requestBody == null) {
|
|
|
|
if (requestBody == null) {
|
|
|
|
return Result.error("请输入请求参数");
|
|
|
|
return Result.error("请输入请求参数");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -140,7 +141,8 @@ public class ApiController {
|
|
|
|
ocrIdentify.setSourceJson(requestBody.getJSONArray("sourceJson").toJSONString());//校验数据源
|
|
|
|
ocrIdentify.setSourceJson(requestBody.getJSONArray("sourceJson").toJSONString());//校验数据源
|
|
|
|
ocrIdentifyService.save(ocrIdentify);
|
|
|
|
ocrIdentifyService.save(ocrIdentify);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Thread.sleep(1000L);
|
|
|
|
log.info("api接口-通用识别请求结束,{}",requestBody);
|
|
|
|
|
|
|
|
Thread.sleep(1000L);
|
|
|
|
//3.请求python ocr识别,异步执行
|
|
|
|
//3.请求python ocr识别,异步执行
|
|
|
|
//taskService.postSemantic(ocrIdentify,fileList);
|
|
|
|
//taskService.postSemantic(ocrIdentify,fileList);
|
|
|
|
//ocrIdentifyService.postSemantic(ocrIdentify, fileList);
|
|
|
|
//ocrIdentifyService.postSemantic(ocrIdentify, fileList);
|
|
|
|