修复(履约绑定): 客户资料不全时禁止开始绑定
- 自动选号后不再在缺少游戏主页截图时启动绑定 - 补启动查询只挑资料完整的任务,避免阻塞后续任务 - 客户绑定启动接口校验角色/登录方式/系统/截图
This commit is contained in:
@@ -141,6 +141,21 @@ def _order_snapshot_from_event(payload: dict[str, Any]) -> dict[str, Any]:
|
||||
return data if isinstance(data, dict) else payload
|
||||
|
||||
|
||||
def _has_game_home_profile(task: PlatformFulfillmentTask) -> bool:
|
||||
"""Clean 任务必须同时有游戏角色、登录方式、系统和至少一张主页截图。"""
|
||||
images = task.customer_home_images or []
|
||||
return bool(
|
||||
str(task.customer_role_name or "").strip()
|
||||
and str(task.customer_platform or "").strip() in {"wechat", "qq"}
|
||||
and str(task.customer_system or "").strip() in {"ios", "android"}
|
||||
and isinstance(images, list)
|
||||
and any(
|
||||
isinstance(item, dict) and str(item.get("url") or "").strip()
|
||||
for item in images
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
def _order_match_started_at(db: Session) -> datetime | None:
|
||||
row = (
|
||||
db.query(PlatformFulfillmentSetting)
|
||||
|
||||
Reference in New Issue
Block a user