fix: 修复TronLink和TokenPocket DeepLink协议格式
- TronLink: pull?param -> pull.activity?param (官方文档格式) - TronLink: 添加version:1.0字段 - TokenPocket: tpoutside://pull -> tpdapp://open (DApp浏览器协议) - 已部署到AI服务器(43.224.155.27)和备份服务器(103.96.148.7)
This commit is contained in:
parent
8a77c4ad98
commit
ca5883ace8
|
|
@ -315,7 +315,7 @@ function buildWallets(showTron: boolean): WalletInfo[] {
|
|||
icon: <TronLinkIcon />,
|
||||
installUrl: "https://www.tronlink.org/",
|
||||
// TronLink mobile DeepLink — opens current URL in TronLink's built-in browser
|
||||
mobileDeepLink: `tronlinkoutside://pull?param=${encodeURIComponent(JSON.stringify({ url: currentUrl, action: "open", protocol: "tronlink" }))}`,
|
||||
mobileDeepLink: `tronlinkoutside://pull.activity?param=${encodeURIComponent(JSON.stringify({ url: currentUrl, action: "open", protocol: "tronlink", version: "1.0" }))}`,
|
||||
isInstalled: () => !!getTronLink(),
|
||||
connect: async () => {
|
||||
const tron = getTronLink();
|
||||
|
|
@ -354,7 +354,7 @@ function MobileDeepLinkPanel({ lang, showTron }: { lang: Lang; showTron: boolean
|
|||
id: "tronlink",
|
||||
name: "TronLink",
|
||||
icon: <TronLinkIcon />,
|
||||
deepLink: `tronlinkoutside://pull?param=${encodeURIComponent(JSON.stringify({ url: currentUrl, action: "open", protocol: "tronlink" }))}`,
|
||||
deepLink: `tronlinkoutside://pull.activity?param=${encodeURIComponent(JSON.stringify({ url: currentUrl, action: "open", protocol: "tronlink", version: "1.0" }))}`,
|
||||
installUrl: "https://www.tronlink.org/",
|
||||
badge: "TRON",
|
||||
badgeColor: "#FF0013",
|
||||
|
|
@ -393,7 +393,7 @@ function MobileDeepLinkPanel({ lang, showTron }: { lang: Lang; showTron: boolean
|
|||
id: "tokenpocket",
|
||||
name: "TokenPocket",
|
||||
icon: <TokenPocketIcon />,
|
||||
deepLink: `tpoutside://pull?param=${encodeURIComponent(JSON.stringify({ url: currentUrl }))}`,
|
||||
deepLink: `tpdapp://open?params=${encodeURIComponent(JSON.stringify({ url: currentUrl, chain: "ETH", source: "NAC-Presale" }))}`,
|
||||
installUrl: "https://www.tokenpocket.pro/en/download/app",
|
||||
badge: "EVM/TRON",
|
||||
badgeColor: "#2980FE",
|
||||
|
|
|
|||
Loading…
Reference in New Issue