|
@@ -74,7 +74,8 @@ public class OcrServiceImpl implements OcrService {
|
|
|
// int countFlag = Integer.valueOf(toSelShuntByType("-1").get(0).getRemarks());
|
|
|
int countFlag = Integer.valueOf(toSelShuntByType(fileType).get(0).getRemarks());
|
|
|
List<Shunt> shunts = toSelShuntByType(fileType);
|
|
|
- String shuntType = AipOcrUtils.checkLocalOrAli(shunts, countFlag);
|
|
|
+// String shuntType = AipOcrUtils.checkLocalOrAli(shunts, countFlag);
|
|
|
+ String shuntType = "0";
|
|
|
log.info("shuntType调取结果为:{}", shuntType);
|
|
|
Map<String, Object> ocrMap = toOcrMap(reqId, fileType, url, fileName, data, startTime, shuntType);
|
|
|
// todo 等于数据库存取的proportion如:100时,置为0;可从数据库获取,按照比例来。
|
|
@@ -736,6 +737,8 @@ public class OcrServiceImpl implements OcrService {
|
|
|
// matchMap.put("recommends", fileType.equals("3") ? JSON.toJSONString(recommendInfoService.findRecomInfo()) : "[]");
|
|
|
// matchMap.put("req_id", reqId);
|
|
|
matchMap = uploadService.link(bo, ocr, fileType);
|
|
|
+ matchMap.remove("req_id");
|
|
|
+ matchMap.put("req_id",reqId);
|
|
|
return matchMap;
|
|
|
}
|
|
|
|