feat条件单页本页划入交易户,避免跳转丢失新建表单。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -68,6 +68,10 @@ def _candidates_from_snaps(rows: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
||||
trading_usdt = round(float(trading_usdt), 4)
|
||||
if funding_usdt is not None:
|
||||
funding_usdt = round(float(funding_usdt), 4)
|
||||
transfer_blocked = bool(snap.get("transfer_blocked")) or has_pos
|
||||
transfer_block_msg = str(snap.get("transfer_block_msg") or "").strip()
|
||||
if has_pos and not transfer_block_msg:
|
||||
transfer_block_msg = "期权持仓中禁止划转"
|
||||
out.append(
|
||||
{
|
||||
"id": row.get("id"),
|
||||
@@ -80,6 +84,8 @@ def _candidates_from_snaps(rows: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
||||
"error": row.get("error") or "",
|
||||
"trading_usdt": trading_usdt,
|
||||
"funding_usdt": funding_usdt,
|
||||
"transfer_blocked": transfer_blocked,
|
||||
"transfer_block_msg": transfer_block_msg,
|
||||
}
|
||||
)
|
||||
return out
|
||||
|
||||
Reference in New Issue
Block a user