From 8022464e789c52d462ac21cb0e43e45f388ebd10 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Thu, 21 May 2026 13:04:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=89=80=E6=9C=89=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8F=AF=E8=A7=81=E7=9A=84=20Matic=20=E8=BF=87?= =?UTF-8?q?=E6=97=B6=E5=BC=95=E7=94=A8=EF=BC=8C=E7=BB=9F=E4=B8=80=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20Polygon=20/=20POL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Polygon 已于 2021 年从 Matic 更名,2024 年 token 从 MATIC 迁移为 POL。 - polygonChain 标签: "Polygon (Matic) Network" → "Polygon Network" - chainIdToDisplayName: "Polygon (Matic)" → "Polygon" - paymentGasWarning: "POL/MATIC" → "POL" - chainSwitchPrompt: "Polygon (Matic)" → "Polygon" - 错误检测正则保留 matic 关键字以兼容旧钱包 Tested: tsc --noEmit --- frontend/components/account/AccountCenter.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/components/account/AccountCenter.tsx b/frontend/components/account/AccountCenter.tsx index ff951017..670983ce 100644 --- a/frontend/components/account/AccountCenter.tsx +++ b/frontend/components/account/AccountCenter.tsx @@ -245,10 +245,10 @@ 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 === 137) return "Polygon"; if (chainId === 1) return "Ethereum Mainnet"; if (chainId) return `Chain ID ${chainId}`; - return "Polygon (Matic)"; + return "Polygon"; } let walletConnectProviderCache: EvmProvider | null = null; @@ -795,7 +795,7 @@ export function AccountCenter() { paymentNetwork: isEn ? "Payment Network" : "支付网络", paymentHost: isEn ? "Payment Host" : "支付域名", primary: "Primary", - polygonChain: isEn ? "Polygon (Matic) Network" : "Polygon (Matic) 网络", + polygonChain: isEn ? "Polygon Network" : "Polygon 网络", noWallet: isEn ? "No payment wallet bound yet." : "未绑定任何付款钱包", bindExt: isEn ? "Bind Browser Wallet (EVM Extension)" @@ -883,8 +883,8 @@ export function AccountCenter() { ? "Option 1: Bind your EVM wallet (e.g. MetaMask extension or WalletConnect QR scan) to sign and pay via smart contract. Credits are credited instantly." : "方式一:绑定您的 EVM 钱包(如 MetaMask 扩展或 WalletConnect 扫码),通过智能合约自动签名付款,额度即时到账。", paymentGasWarning: isEn - ? "Your wallet needs a small amount of Polygon POL/MATIC for gas fees; USDC alone may not complete authorization or payment. Please confirm your wallet is on Polygon network and keep some POL/MATIC before paying." - : "钱包里需要少量 Polygon POL/MATIC 作为 gas 手续费;只有 USDC 可能无法完成授权或支付。请确认当前钱包在 Polygon 网络,并预留一点 POL/MATIC 后再支付。", + ? "Your wallet needs a small amount of POL for gas fees; USDC alone may not complete authorization or payment. Please confirm your wallet is on Polygon network and keep some POL before paying." + : "钱包里需要少量 POL 作为 gas 手续费;只有 USDC 可能无法完成授权或支付。请确认当前钱包在 Polygon 网络,并预留一点 POL 后再支付。", paymentManualDesc: isEn ? "Option 2: Transfer directly to the platform's receiver contract without binding a wallet. After the transfer, submit the transaction hash (Tx Hash) and the system will verify and activate Pro automatically." : "方式二:无需将钱包绑定到账号,直接向平台收款合约转账。转账完成后提交交易哈希(Tx Hash)系统会自动验签并开通 Pro。", @@ -906,8 +906,8 @@ export function AccountCenter() { chainSwitchError: isEn ? "Switch wallet network" : "切换钱包网络", chainAddPolygon: isEn ? "Add Polygon network" : "添加 Polygon 网络", chainSwitchPrompt: isEn - ? "Please manually switch to Polygon (Matic) network in your wallet and try again." - : "请在钱包中手动切换到 Polygon (Matic) 网络后再试。", + ? "Please manually switch to Polygon network in your wallet and try again." + : "请在钱包中手动切换到 Polygon 网络后再试。", }), [isEn], );