修复(履约绑定): 客户资料不全时禁止开始绑定

- 自动选号后不再在缺少游戏主页截图时启动绑定
- 补启动查询只挑资料完整的任务,避免阻塞后续任务
- 客户绑定启动接口校验角色/登录方式/系统/截图
This commit is contained in:
yml
2026-11-25 10:07:14 +08:00
parent b495a2d999
commit 8aa4ea7342
4 changed files with 55 additions and 2 deletions
@@ -17,6 +17,7 @@ from .binding import (
refresh_binding,
start_binding,
)
from .common import FLOW_VERSION_CLEAN, _has_game_home_profile
from .order_sync import sync_order_item_ids
from .repository import (
_find_customer_task,
@@ -126,6 +127,8 @@ async def customer_start_binding(
return customer_binding_out(db, task.id)
if task.issue_code == "mapping_missing":
return customer_binding_out(db, task.id)
if task.flow_version == FLOW_VERSION_CLEAN and not _has_game_home_profile(task):
raise HTTPException(status_code=409, detail="请先提交游戏角色和游戏主页截图")
if not task.account_id or not task.lease_id:
from .auto_allocator import wake_auto_allocator