mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
classifyByAffinityZone was running before filterByMinPriority, causing high-priority accounts in the red zone to be removed before priority filtering, allowing low-priority accounts in the green zone to be selected instead. Move zone classification into the priority loop so it operates within same-priority groups, with fallback to next priority group when current group is entirely in the red zone. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>