feat(douyu): include binding roles in batch verification

Expose CK and binding-role validity from batch verification and summarize invalid CK, missing roles, and request failures in the collaboration workbench.
This commit is contained in:
yml
2026-11-20 00:22:48 +08:00
parent 85837944d0
commit e9937419cb
4 changed files with 119 additions and 8 deletions
+5 -1
View File
@@ -361,12 +361,16 @@ def verify_external_orders_batch(
order = collab.get_order(db, order_id)
result = collab.verify_order(db, current, order)
probe = result["probe"]
role = str(probe.get("bind_game_role") or "")
results.append(
{
"id": order_id,
"success": True,
"ok": bool(probe.get("ok")),
"ck_status": probe.get("ck_status"),
"role": probe.get("bind_game_role"),
"role": role,
"role_ok": bool(role),
"message": probe.get("message") or "",
}
)
except Exception as exc: # noqa: BLE001 - 批量逐行隔离