mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
- Batch-query daily usage in one SQL (GroupBy) instead of N queries - Include PENDING orders in daily usage to prevent over-committing - Check remaining capacity (used + orderAmount > limit) not just used >= limit - Check SingleMin/SingleMax per-channel limits - Pre-attach usage to candidates, reuse across filter and strategy pick - Fallback to full list with warn log when all instances exhausted chore: bump version to 0.1.108.139