diff --git a/README.md b/README.md index 38e63da..e9f500d 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ - 安装:[Docker](./docs/docker.md)・[Linux](./docs/systemd.md)・[1Panel](./docs/1panel/README.md)・[宝塔](./docs/bt_panel/README.md) - 对接:[独角数卡](./docs/dujiaoka.md)・[异次元](./docs/acg-faka.md)・[萌次元](./docs/mcy-shop.md)・[彩虹易支付](https://github.com/v03413/Epay-BEpusdt) - 开发:[API对接](./docs/api.md)・[订单回调](./docs/notify-epusdt.md)・[Webhook 事件](./docs/webhook.md) -- 其它:[https 配置](./docs/ssl.md)・[Linux 时钟同步](./docs/systemd-timesyncd.md) +- 其它:[https 配置](./docs/ssl.md)・[Linux 时钟同步](./docs/systemd-timesyncd.md)・[前端模板修改](./docs/template/README.md) ## 🖼 功能截图 diff --git a/docs/template/README.md b/docs/template/README.md new file mode 100644 index 0000000..0244c76 --- /dev/null +++ b/docs/template/README.md @@ -0,0 +1,58 @@ +# 修改默认模板 + +BEpusdt 所有的静态文件都存放在 `static` 目录,而模板文件则存放在 `views` 目录下。 + +当前目录结构: + +``` +➜ bepusdt git:(main) ✗ tree ./static +./static +├── css +│   ├── layer.css +│   ├── main.min.css +│   └── usdt.min.css +├── embep.go +├── font +├── img +│   ├── cloud.png +│   ├── Detector.js +│   ├── favicon.ico +│   ├── icon-1.png +│   ├── icon-2.png +│   ├── icon-3.png +│   ├── icon-4.png +│   ├── key.png +│   ├── lock_icon_copy.png +│   ├── logo.png +│   ├── puff.svg +│   ├── RequestAnimationFrame.js +│   ├── tether.svg +│   ├── ThreeExtras.js +│   ├── ThreeWebGL.js +│   ├── tick.png +│   ├── tron_trx.svg +│   ├── trx.png +│   └── user_icon_copy.png +├── js +│   ├── clipboard.min.js +│   ├── jquery.min.js +│   ├── jquery.qrcode_1.0.min.js +│   ├── layer.min.js +│   └── usdt.min.js +└── views + ├── index.html + ├── tron.trx.html + ├── usdt.aptos.html + ├── usdt.bep20.html + ├── usdt.erc20.html + ├── usdt.polygon.html + ├── usdt.solana.html + ├── usdt.trc20.html + └── usdt.xlayer.html + +``` + +能够看到,`static/views` 对应了不同支付交易类型的页面模板,模板内容可以自定义,但是模板文件名不能修改, +必须和交易类型保持一致,否则系统无法识别。 + +当你修改之后,通过配置文件里面的`static_path`参数指定静态文件目录即可,最好是绝对路径;至于其它 css js img 等文件,自行调整。