feat(履约绑定): 支持工作台修改客户资料、扫码不匹配时间线及确认后斗鱼复核

This commit is contained in:
yml
2026-11-26 16:23:30 +08:00
parent ed91fb7549
commit 917c11f203
14 changed files with 1293 additions and 19 deletions
@@ -315,6 +315,23 @@ def build_binding_evidence(
scanned_role,
now=now,
)
raw_mismatch = result.get("last_mismatched_role")
mismatched_role = None
if isinstance(raw_mismatch, dict) and _text(raw_mismatch.get("role_name")):
mismatched_role = {
"alias": _text(raw_mismatch.get("act_alias")),
"roleName": _text(raw_mismatch.get("role_name")),
"areaName": _text(raw_mismatch.get("area_name")),
"platName": _text(raw_mismatch.get("plat_name")),
"channel": _channel(
_text(raw_mismatch.get("area_name")),
_text(raw_mismatch.get("plat_name")),
),
"expectedRoleName": _text(
raw_mismatch.get("expected_role_name") or task.customer_role_name
),
"observedAt": _text(raw_mismatch.get("observed_at")),
}
return {
"sourceTaskId": int(bind_task.id),
"sourceTaskType": str(bind_task.task_type or ""),
@@ -328,6 +345,7 @@ def build_binding_evidence(
"confirmable": confirmable,
"targetRole": target_role,
"scannedRole": scanned_role,
"mismatchedRole": mismatched_role,
"baselineRole": baseline_role,
"samePair": same_pair,
"actionCurrent": action_current,