refactor(douyu): 统一账号准入与本地查询链路

This commit is contained in:
yml
2026-11-22 19:31:32 +08:00
parent e652d30283
commit d78437c6ac
14 changed files with 592 additions and 548 deletions
@@ -26,6 +26,7 @@ from ..models import (
DouyuExternalOrder,
PlatformFulfillmentTask,
)
from .account_query_filters import ACTIVE_COLLAB_STATUSES
CK_HEALTH_JOB_KEY = "ck_health"
PROTECTION_CONFIG_KEY = "protection_groups"
@@ -35,17 +36,7 @@ MIN_PROBE_INTERVAL_MINUTES = 15
MAX_PROBE_INTERVAL_MINUTES = 24 * 60
MAX_TARGET_COUNT = 100_000
# 与 douyu_collab_service.COLLAB_LEASE_STATUSES 保持一致。这里只放状态值,
# 避免服务层为了两个常量导入整个协作业务模块。
COLLAB_ACTIVE_STATUSES = (
"incomplete",
"to_recharge",
"recharged",
"scripted",
"points_error",
"role_error",
"failed",
)
COLLAB_ACTIVE_STATUSES = ACTIVE_COLLAB_STATUSES
GROUP_DEFINITIONS: dict[str, dict[str, Any]] = {
"presale_bound": {