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:
@@ -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 - 批量逐行隔离
|
||||
|
||||
Reference in New Issue
Block a user