master
周文涛 2 years ago
parent f2318b6bab
commit 2e4227ade2

@ -424,6 +424,11 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
String taskType = jsonObject.getString("taskType");
int taskLevel = jsonObject.getInteger("taskLevel");
String parameter = jsonObject.getString("parameter");
try {
Thread.sleep(new Random().nextInt(10)*1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
String task_ = (String) redisUtil.get("task_" + taskLevel);
log.info("历史任务:"+task_);
if (task_ == null || task_.equals("[]")) {

Loading…
Cancel
Save