From 982d1924991149a85cc2efc70a730884d5515bbd Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Thu, 21 May 2026 12:54:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E7=AE=A1=E7=90=86=E6=91=98?= =?UTF-8?q?=E8=A6=81=E5=8C=BA=E6=96=B0=E5=A2=9E=E6=94=AF=E4=BB=98=E7=BD=91?= =?UTF-8?q?=E7=BB=9C=E4=BF=A1=E6=81=AF=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户反馈支付管理区未标明链网络,在账号/钱包/收款合约行下方 新增"支付网络 (Payment Network)" InfoRow,明确显示 Polygon (Matic)。 Tested: tsc --noEmit --- frontend/components/account/AccountCenter.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/components/account/AccountCenter.tsx b/frontend/components/account/AccountCenter.tsx index 0c87425d..ff951017 100644 --- a/frontend/components/account/AccountCenter.tsx +++ b/frontend/components/account/AccountCenter.tsx @@ -244,6 +244,13 @@ const PAYMENT_RECOVERY_TTL_MS = 6 * 60 * 60 * 1000; const WALLET_REQUEST_TIMEOUT_MS = 60_000; const WALLET_TRANSACTION_REQUEST_TIMEOUT_MS = 120_000; +function chainIdToDisplayName(chainId: number | undefined | null): string { + if (chainId === 137) return "Polygon (Matic)"; + if (chainId === 1) return "Ethereum Mainnet"; + if (chainId) return `Chain ID ${chainId}`; + return "Polygon (Matic)"; +} + let walletConnectProviderCache: EvmProvider | null = null; let walletConnectProviderChainId: number | null = null; const eip6963Providers = new Map(); @@ -785,6 +792,7 @@ export function AccountCenter() { paymentAccount: isEn ? "Subscription Account" : "订阅归属账号", paymentWallet: isEn ? "Paying Wallet" : "付款钱包", paymentReceiver: isEn ? "Receiver Contract" : "当前收款合约", + paymentNetwork: isEn ? "Payment Network" : "支付网络", paymentHost: isEn ? "Payment Host" : "支付域名", primary: "Primary", polygonChain: isEn ? "Polygon (Matic) Network" : "Polygon (Matic) 网络", @@ -3249,6 +3257,11 @@ export function AccountCenter() { label={copy.paymentReceiver} value={shortAddress(paymentReceiverAddress) || "--"} /> +