|
|
@ -63,11 +63,13 @@ public class ApiController {
|
|
|
|
private TaskService taskService;
|
|
|
|
private TaskService taskService;
|
|
|
|
@Value("${spring.profiles.active}")
|
|
|
|
@Value("${spring.profiles.active}")
|
|
|
|
private String profiles;
|
|
|
|
private String profiles;
|
|
|
|
|
|
|
|
@Value("${system.project.wlyCallback}")
|
|
|
|
|
|
|
|
private String wlyCallback;
|
|
|
|
@ApiOperation(value = "通用识别")
|
|
|
|
@ApiOperation(value = "通用识别")
|
|
|
|
@RequestMapping("/identify")
|
|
|
|
@RequestMapping("/identify")
|
|
|
|
@Transactional
|
|
|
|
@Transactional
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
@AutoLog(value = "api接口-通用识别",logType = CommonConstant.OPERATE_TYPE_1)
|
|
|
|
@AutoLog(value = "api接口-通用识别",logType = CommonConstant.LOG_TYPE_2,operateType=CommonConstant.OPERATE_TYPE_1)
|
|
|
|
public Result<?> pushSemantic(@RequestBody JSONObject requestBody) throws InterruptedException {
|
|
|
|
public Result<?> pushSemantic(@RequestBody JSONObject requestBody) throws InterruptedException {
|
|
|
|
// if (!"test".equals(profiles)) {
|
|
|
|
// if (!"test".equals(profiles)) {
|
|
|
|
// return Result.error("当前环境不支持该功能,请访问测试环境");
|
|
|
|
// return Result.error("当前环境不支持该功能,请访问测试环境");
|
|
|
@ -265,7 +267,7 @@ public class ApiController {
|
|
|
|
Map<String, String> configRuleMap = ocrRuleCheckVo.getConfigRuleMap();*/
|
|
|
|
Map<String, String> configRuleMap = ocrRuleCheckVo.getConfigRuleMap();*/
|
|
|
|
OcrIdentifyDTO identifyDTO = ocrIdentifyService.findById("1702560400245035009");
|
|
|
|
OcrIdentifyDTO identifyDTO = ocrIdentifyService.findById("1702560400245035009");
|
|
|
|
List<OcrIdentifyDetail> identifyDetailList = ocrIdentifyDetailService.listByIdentifyId(identifyDTO.getId());
|
|
|
|
List<OcrIdentifyDetail> identifyDetailList = ocrIdentifyDetailService.listByIdentifyId(identifyDTO.getId());
|
|
|
|
CallBackWlyUtils.callbackWly(identifyDTO,identifyDetailList);
|
|
|
|
CallBackWlyUtils.callbackWly(wlyCallback,identifyDTO,identifyDetailList);
|
|
|
|
return Result.OK("");
|
|
|
|
return Result.OK("");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|