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
@@ -92,6 +92,23 @@ def _binding_failure_raw_message(
f"待绑定游戏账号({role_name or '-'})未到换绑时间"
"(不是斗鱼/虎牙账号),请重新换账号扫码绑定"
)
if issue_code == "binding_failed":
last_mismatch = result.get("last_mismatched_role")
mismatched_name = (
str(last_mismatch.get("role_name") or "").strip()
if isinstance(last_mismatch, dict)
else ""
)
expected = str(
(last_mismatch.get("expected_role_name") if isinstance(last_mismatch, dict) else "")
or result.get("expected_role_name")
or ""
).strip()
if mismatched_name and expected:
return (
f"绑定二维码已过期:期间扫到「{mismatched_name}」,"
f"与填写角色「{expected}」不一致"
)
return fallback