修复(CK检测): 统一斗鱼CK有效性检测入口并禁止非鉴权接口覆盖状态

This commit is contained in:
yml
2026-11-26 17:38:50 +08:00
parent 3431705096
commit 7a20c63464
9 changed files with 489 additions and 76 deletions
@@ -327,6 +327,8 @@ def _capability_candidate_query(
),
case((Account.ck_check_status == "valid", 0), else_=1),
case((Account.status == "active", 0), else_=1),
Account.ck_checked_at.is_(None).asc(),
Account.ck_checked_at.desc(),
case((Account.elite_opened.is_(True), 0), else_=1),
case(
(Account.points >= max(0, int(required_points)), 0),