admin
a950fd2ead
rebrand: BEpusdt → VUPAY
...
Docker Build (Gitea) / Build and Push Docker Image (push) Successful in 47s
展示层与标识符全量改名:
- module github.com/v03413/bepusdt → git.viaeon.com/admin/vupay(含全部 import)
- 二进制/镜像/容器/DB 名 bepusdt → vupay(Dockerfile、workflow IMAGE、compose、docs)
- 显示名 BEpusdt → VUPAY(前端 title、后端 banner、version 命令、通知文案)
- 默认路径 /var/lib/bepusdt → /var/lib/vupay,/var/log/bepusdt → /var/log/vupay
- Telegram 通知的频道按钮原来指向上游 t.me 群,改成站点链接(否则改名后是死链)
刻意保留(运行语义,改了会坏):
- api_type 取值 "epusdt" / "epusdt_order"(库里存量数据按此匹配)
- 表前缀 bep_(bep_order / bep_conf / …,改需 RENAME TABLE 迁移)
- 签名函数 EpusdtSign 与 handler 包名 epusdt(对外协议语义,非品牌)
- 所有加密/会话派生的字面量原样不动
验证:gofmt 通过、go build ./... 通过、全仓 grep -i bepusdt 归零
2026-11-25 09:06:06 +08:00
admin
647e1b96b1
feat(db): 支持 MySQL(MYSQL_DSN 环境变量 / --mysql 参数)
...
Docker Build (Gitea) / Build and Push Docker Image (push) Successful in 46s
- app/cmd/flag.go: 新增 MysqlDSNFlag(env MYSQL_DSN)
- start/reset: 读取并传给 model.Init
- model.Init 改为三选一:MySQL > PostgreSQL > SQLite
- 新增 initMysql():连接池参数对齐 Postgres 那套(10/100、30m 生命周期)
- order.go: return_url / notify_url 从 TEXT 改 VARCHAR(1024)
MySQL 8 不允许 TEXT 列带 DEFAULT(Error 1101),改 varchar 三库通用
实测(真 mysql:8.0 容器):6 张表全部建出,bep_order 列类型符合预期
2026-11-24 19:58:08 +08:00
sylearn and Claude Opus 5.5
014bb8e12b
feat(solana): reconcile expired orders against token account history
...
Block scanning gives every slot one chance. A skipped or abandoned slot,
a restart, or an incomplete lookback range loses a payment for good, and
nothing finds it again.
Once a Solana order has been expired for a minute (up to two hours), look
it up once in the receiving token accounts' own history:
- token accounts: the wallet's associated token account, derived locally,
plus any other account from getTokenAccountsByOwner when the node
supports it (publicnode's free tier rejects that method);
- getSignaturesForAddress back to the order's creation time, keeping
successful signatures inside the order window that no order has used;
- getTransaction, parsed with parseTransaction and checked with the
existing orderTransferMatch. A match is marked confirming and then
follows the normal confirm and callback flow.
RPC errors leave the order for the next round. Cost: a few RPC calls per
expired Solana order plus one getTransaction per candidate payment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-18 13:41:36 +08:00
v03413
8076cd4b75
refactor: remove MySQL support and add migrations
2026-07-08 15:47:40 +08:00
v03413
46af120fd7
build: update Go module dependencies
2026-06-03 09:47:35 +08:00
v03413
ea113e6e90
feat: 增加支持 Ton 区块链网络扫块
...
新增交易类型 ton.toncoin usdt.ton
close: https://github.com/v03413/BEpusdt/pull/192
2026-06-02 21:03:19 +08:00
betaxab
f4a225baea
update: upgrade to Go 1.26.2 && upgrade dependencies
2026-05-07 01:21:09 +08:00
v03413
c4d5e20c7a
feat: 实现交易监听 MQTT服务器广播
2026-04-15 14:58:24 +08:00
v03413
6a2f3b6d6e
feat: add PostgreSQL database support
2026-02-26 14:51:53 +08:00
v03413
e303768e08
fix: 限定日志文件的过渡膨胀
2026-02-05 09:28:31 +08:00
long2ice
669c47974d
feat: 支持 MySQL 数据库
2026-01-15 22:36:46 +08:00
betaxab
ef4b3293b3
feat: Add .env file support
2026-01-09 19:53:53 +08:00
v03413
734da0aa83
Update
...
Update
Update
update
update
update
Update
2026-01-04 01:23:53 +08:00
zhiqiang.wang
ac5b1c2abf
perf: 区块 evm 扫描优化
...
基本实现 https://github.com/v03413/bepusdt/issues/56 目前底层已经扫描了 eth polygon 链并解析出了对应数据,但是否开放并接入 eth pol 两种原生币待考虑
2025-06-13 17:07:46 +08:00
zhiqiang.wang
bab60542dd
feat: 增加支持 支付超时 等待回调事件
...
实现去年立下的flag https://github.com/v03413/bepusdt/issues/32
2025-05-26 11:10:09 +08:00
zhiqiang.wang
c98aaed49e
perf: 更换底层bot 框架
...
原有bot框架停更,此次主要更新为另外一个框架,涉及逻辑较多可能存在一些问题
2025-05-22 22:10:14 +08:00
zhiqiang.wang
eac611798a
feat: 弃用环境变量传参 & 支持 toml 文件配置
2025-03-26 17:40:41 +08:00
zhiqiang.wang
f541a14455
to: polygon usdt 收款实现中...
2025-03-18 15:36:35 +08:00
zhiqiang.wang
4b3fd9d21f
feat: 增加支持商户端可主动取消订单
2025-01-05 16:50:37 +08:00
zhiqiang.wang
2f6a143353
perf: 本地交易ID格式调整
2024-12-24 10:17:15 +08:00
zhiqiang.wang
ca7817306e
feat: 增加可自定义支付小数位数,见文档变量 USDT_ATOM
...
已实现 https://github.com/v03413/bepusdt/issues/27#issuecomment-2358695729
2024-09-21 21:17:42 +08:00
zhiqiang.wang
eb057e9ee4
perf: 移除系统CGO依赖
2024-07-04 10:31:49 +08:00
zhiqiang.wang
bac9052264
perf: 抛弃数据结构常量定义 采用自动迁移
2024-07-04 10:19:02 +08:00
zhiqiang.wang
b247daf727
perf: 细节优化
2024-04-22 18:53:09 +08:00
zhiqiang.wang
79c53e4bc0
perf: 优化并发性能
2023-10-12 17:01:15 +08:00
zhiqiang.wang
9ea631813d
refactor: 完成第一阶段对epusdt 的轮子重构
2023-10-12 16:45:55 +08:00