修复删除强平模板后 embed 因 TemplateNotFound 整页 500。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-07 13:21:48 +08:00
parent ddacdbc1e8
commit 03dde1853d
3 changed files with 5 additions and 14 deletions
+3 -2
View File
@@ -54,8 +54,9 @@ def order_rule_tips_template(exchange_key: str) -> str:
def include_transfer_block(exchange_key: str) -> bool:
"""三所 standalone / embed 壳均在顶栏展示划转区块."""
return (exchange_key or "").strip().lower() in ORDER_RULE_TIPS_BY_EXCHANGE
"""永续划转区块已下线."""
del exchange_key
return False
def ui_open_guard_enabled(exchange_key: str) -> bool: