修复(履约绑定): 禁止预检同对抢跑并补齐角色绑定与日志表格展示
This commit is contained in:
@@ -252,8 +252,21 @@ def build_binding_evidence(
|
||||
# scannedRole 必须和列表、客户页、提交确认共用同一个权威 pending 判定。
|
||||
# actionPending/decision 只保留为诊断字段,不能绕过客户目标校验。
|
||||
scanned_role = _text(pending_role)
|
||||
customer_role = _text(task.customer_role_name)
|
||||
same_pair_target_ok = (
|
||||
not customer_role
|
||||
and not bool(result.get("expected_role_required"))
|
||||
) or (
|
||||
bool(customer_role)
|
||||
and account_current_role.casefold() == customer_role.casefold()
|
||||
)
|
||||
if (
|
||||
not scanned_role
|
||||
and same_pair_target_ok
|
||||
and (
|
||||
str(bind_task.status or "") == "success"
|
||||
or bool(result.get("bind_poll_legacy_observed_change"))
|
||||
)
|
||||
and action_current is not None
|
||||
and account_current_role
|
||||
and legacy_role
|
||||
|
||||
Reference in New Issue
Block a user