Commit dfbadf0
committed
fix(admin): one-click clean rate-limited now clears premium 5h + usage_exhausted
CleanRateLimited used CleanByRuntimeStatus("rate_limited"), which has two
quirks designed for the auto-cleanup sweep:
1. premium 5h rate-limited accounts are skipped — they self-recover in
~5h so deleting them wastes accounts
2. only matches RuntimeStatus == "rate_limited", not "usage_exhausted"
(Free 7d window full)
The UI's "限流" filter is broader (covers usage_exhausted + premium 5h),
so users see accounts that the one-click cleaner won't touch. Users
already worked around this by selecting all of them and running batch
delete, which goes through per-id deletion and bypasses the runtime-status
gate entirely.
Fix: new CleanRateLimitedManual that
- matches both rate_limited AND usage_exhausted
- does NOT skip premium 5h (manual click is an explicit user intent)
- still skips Locked accounts
- logs the deletion event with reason "manual_clean" instead of
"auto_clean"
CleanByRuntimeStatus is unchanged and still serves runAutoCleanupSweep.1 parent 3ec56d8 commit dfbadf0
3 files changed
Lines changed: 97 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5077 | 5077 | | |
5078 | 5078 | | |
5079 | 5079 | | |
5080 | | - | |
| 5080 | + | |
5081 | 5081 | | |
5082 | | - | |
| 5082 | + | |
| 5083 | + | |
| 5084 | + | |
| 5085 | + | |
| 5086 | + | |
| 5087 | + | |
5083 | 5088 | | |
5084 | 5089 | | |
5085 | 5090 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2521 | 2521 | | |
2522 | 2522 | | |
2523 | 2523 | | |
2524 | | - | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
2525 | 2527 | | |
2526 | 2528 | | |
2527 | 2529 | | |
| |||
2556 | 2558 | | |
2557 | 2559 | | |
2558 | 2560 | | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
| 2582 | + | |
| 2583 | + | |
| 2584 | + | |
| 2585 | + | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
| 2589 | + | |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
2559 | 2600 | | |
2560 | 2601 | | |
2561 | 2602 | | |
| |||
0 commit comments