diff --git a/src/main/java/com/whdc/component/AutoCallTaskScheduled.java b/src/main/java/com/whdc/component/AutoCallTaskScheduled.java index f9191d6..499cac5 100644 --- a/src/main/java/com/whdc/component/AutoCallTaskScheduled.java +++ b/src/main/java/com/whdc/component/AutoCallTaskScheduled.java @@ -131,7 +131,7 @@ public class AutoCallTaskScheduled { //fetch status int pendingDuration = 60 * 1000 * 2; int loopGap = 1000; - boolean success = false; + boolean resultFetched = false; while (pendingDuration > 0) { try { Thread.sleep(loopGap); @@ -141,12 +141,12 @@ public class AutoCallTaskScheduled { } pendingDuration -= loopGap; - success = autoCallTaskService.step4QueryAICCTaskResult(person); - if (success) break; + resultFetched = autoCallTaskService.step4QueryAICCTaskResult(person); + if (resultFetched) break; } AutoCallPerson _person = autoCallTaskService.getPersonMapper().selectById(person.getId()); person = _person; - if (!success) { + if (!resultFetched) { if (person.getUploadedTimes() == 2) { autoCallTaskService.markPersonDetailQueryTimeout(person); }