修复(履约选号): 按客户QQ/微信、iOS/安卓和角色优先选号

- 候选账号按客户登录方式和系统过滤,避免微信账号接QQ角色
- 客户角色已绑定的账号优先,且不再被未来换绑时间误排除
- 自动选号传入客户资料
- 补充渠道/角色选择测试
This commit is contained in:
yml
2026-11-25 14:10:42 +08:00
parent eab1d1937a
commit 522ab9310c
3 changed files with 72 additions and 1 deletions
@@ -363,6 +363,9 @@ def _allocate_task_from_capability(
scope=task.scope or SCOPE_ELITE,
now=moment,
allow_before_open=is_presale,
customer_role_name=task.customer_role_name or "",
customer_platform=task.customer_platform or "",
customer_system=task.customer_system or "",
)
recent_exchange_ids: set[int] = set()
if capability_candidates: