Update: 2026-06-30 04:21:34
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -76,8 +76,8 @@ class ScraperAccessibilityService : AccessibilityService() {
|
||||
Log.d(TAG, "No tasks available.")
|
||||
}
|
||||
}
|
||||
// Poll every 15 seconds
|
||||
delay(15000)
|
||||
// Poll every 5 seconds
|
||||
delay(5000)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -404,11 +404,9 @@ class ScraperAccessibilityService : AccessibilityService() {
|
||||
val nextResult = workerClient.fetchTask()
|
||||
if (nextResult != null && nextResult.optBoolean("has_task", false)) {
|
||||
val nextTask = nextResult.getJSONObject("task")
|
||||
currentTask = nextTask
|
||||
taxiFPickupDone = false
|
||||
taxiFDestinationDone = false
|
||||
currentState = BotState.SEARCHING_START
|
||||
Log.i(TAG, "TaxiF: Multi-trip fetched next task ${nextTask.optString("task_id")}, state -> SEARCHING_START")
|
||||
currentState = BotState.IDLE
|
||||
handleTask(nextTask)
|
||||
Log.i(TAG, "Multi-trip: Immediately started next task ${nextTask.optString("task_id")}")
|
||||
} else {
|
||||
Log.i(TAG, "No more tasks, returning to IDLE.")
|
||||
currentState = BotState.IDLE
|
||||
|
||||
Reference in New Issue
Block a user