|
|
@ -140,6 +140,7 @@ public class OcrTaskServiceImpl implements OcrTaskService { |
|
|
log.info("jobUrl:{}",jobUrl); |
|
|
log.info("jobUrl:{}",jobUrl); |
|
|
String resStr = DownLoadUtil.doGet(jobUrl); |
|
|
String resStr = DownLoadUtil.doGet(jobUrl); |
|
|
JSONObject res = JSONObject.parseObject(resStr); |
|
|
JSONObject res = JSONObject.parseObject(resStr); |
|
|
|
|
|
log.info("获取解析结果-taskId{},result:{}",task.get(Constants.TASKID),res);; |
|
|
int progress = (int) res.get(Constants.PROGRESS); |
|
|
int progress = (int) res.get(Constants.PROGRESS); |
|
|
if (progress == 0) { |
|
|
if (progress == 0) { |
|
|
//识别中 -- 放回队列 |
|
|
//识别中 -- 放回队列 |
|
|
|