fix: 每轮点击数从9降到6,匹配萤石并发上限避免超发空转
This commit is contained in:
+1
-1
@@ -716,7 +716,7 @@ def tap_all_thumbnails(baseline, max_rounds=300, poll_interval=4, max_wait_per_r
|
|||||||
badge_skipped = sum(1 for cy in row_centers for gx in THUMB_X if checked.get((gx, cy)))
|
badge_skipped = sum(1 for cy in row_centers for gx in THUMB_X if checked.get((gx, cy)))
|
||||||
# 收集所有未打勾格子(从上到下),最多9个避免超并发
|
# 收集所有未打勾格子(从上到下),最多9个避免超并发
|
||||||
todo_cells = [(gx, cy) for cy in row_centers for gx in THUMB_X if not checked.get((gx, cy))]
|
todo_cells = [(gx, cy) for cy in row_centers for gx in THUMB_X if not checked.get((gx, cy))]
|
||||||
tapped_cells = todo_cells[:9]
|
tapped_cells = todo_cells[:6] # 萤石并发上限10,留余量点6个
|
||||||
for (gx, cy) in tapped_cells:
|
for (gx, cy) in tapped_cells:
|
||||||
adb("shell", "input", "tap", str(gx), str(cy))
|
adb("shell", "input", "tap", str(gx), str(cy))
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
|
|||||||
Reference in New Issue
Block a user