feat(douyu): 落地账号平台同步与登录配额
This commit is contained in:
@@ -48,6 +48,10 @@ from .account_binding import (
|
||||
can_change_role,
|
||||
role_change_available_at,
|
||||
)
|
||||
from .account_capability_service import (
|
||||
AVAILABILITY_AVAILABLE,
|
||||
classify_goods_items,
|
||||
)
|
||||
from .account_events_service import (
|
||||
CATEGORY_OPS,
|
||||
EVENT_COLLAB_SYNCED,
|
||||
@@ -793,6 +797,20 @@ def recommend_accounts(
|
||||
}
|
||||
if cid and cid in limited_ids:
|
||||
return
|
||||
if cid:
|
||||
assessments = classify_goods_items(
|
||||
[
|
||||
item
|
||||
for item in eligibility.get("storehome_goods") or []
|
||||
if isinstance(item, dict)
|
||||
]
|
||||
)
|
||||
assessment = assessments.get(str(cid))
|
||||
if assessments and (
|
||||
assessment is None
|
||||
or assessment.availability != AVAILABILITY_AVAILABLE
|
||||
):
|
||||
return
|
||||
|
||||
elite = probe.get("elite") or {}
|
||||
live_points = _to_int(eligibility.get("points"))
|
||||
|
||||
Reference in New Issue
Block a user