diff --git a/app/conf/const.go b/app/conf/const.go index ea09496..6fc68f7 100644 --- a/app/conf/const.go +++ b/app/conf/const.go @@ -17,7 +17,7 @@ const ( defaultXlayerRpcEndpoint = "https://xlayerrpc.okx.com/" // 默认Xlayer RPC节点 defaultPolygonRpcEndpoint = "https://polygon-rpc.com/" // 默认Polygon RPC节点 defaultEthereumRpcEndpoint = "https://ethereum.publicnode.com/" // 默认Ethereum RPC节点 - defaultAptosRpcEndpoint = "https://api.mainnet.aptoslabs.com/" // 默认Aptos RPC节点 + defaultAptosRpcEndpoint = "https://aptos-rest.publicnode.com/" // 默认Aptos RPC节点 defaultOutputLog = "/var/log/bepusdt.log" // 默认日志输出文件 defaultSqlitePath = "/var/lib/bepusdt/sqlite.db" // 默认数据库文件 ) diff --git a/app/model/orders.go b/app/model/orders.go index e5affd6..bb0785a 100644 --- a/app/model/orders.go +++ b/app/model/orders.go @@ -1,6 +1,7 @@ package model import ( + "fmt" "github.com/shopspring/decimal" "github.com/v03413/bepusdt/app/conf" "strconv" @@ -155,6 +156,9 @@ func GetDetailUrl(tradeType, hash string) string { if tradeType == OrderTradeTypeUsdtSolana { return "https://solscan.io/tx/" + hash } + if tradeType == OrderTradeTypeUsdtAptos { + return fmt.Sprintf("https://explorer.aptoslabs.com/txn/%s?network=mainnet", hash) + } return "https://tronscan.org/#/transaction/" + hash } diff --git a/app/task/aptos.go b/app/task/aptos.go index e77ce92..877cea2 100644 --- a/app/task/aptos.go +++ b/app/task/aptos.go @@ -44,7 +44,7 @@ func init() { func newAptos() aptos { return aptos{ - versionChunkSize: 100, + versionChunkSize: 100, // 目前好像最大就只能100 versionConfirmedOffset: 1000, versionInitStartOffset: -100 * 500, lastVersion: 0, diff --git a/static/views/usdt.aptos.html b/static/views/usdt.aptos.html new file mode 100644 index 0000000..8f4c2f1 --- /dev/null +++ b/static/views/usdt.aptos.html @@ -0,0 +1,93 @@ + + + + + + + USDT・Aptos 一款更好用的个人USDT收款网关 Bepusdt + + + + + + + + +
+
USDT
+

USDT 支付

+

+ + 请使用 Aptos 区块网络进行转账 + Aptos +

+
+
+ 转账金额: + {{.amount}} USDT +
+
+ 商户订单: + {{.order_id}} +
+
+
+
+
+
⏰ 支付倒计时
+
请在时间内完成转账
+
+
+
+ 15 + 分 +
+ : +
+ 00 + 秒 +
+
+
+
+
+
+
+
收款地址 (Aptos 网络)
+
{{.address}}
+ +
+
+
+

📋 转账说明

+
    +
  1. 必须使用 Aptos 网络 进行转账
  2. +
  3. 转账完成后系统会自动确认到账
  4. +
  5. 转账金额必须与显示金额完全一致
  6. +
  7. 如果有其它疑问 请联系客服处理
  8. +
+
+ +
+ + + + + \ No newline at end of file