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
v03413
d36d34fe04
fix: 订单 URL 字段改为 text
...
return_url/notify_url 原为 varchar(255),超长时 PostgreSQL 写入订单报错 (SQLSTATE 22001),由 AutoMigrate 自动变更列类型。
Fix #234
2026-10-15 18:07:53 +08:00
long2ice
efd1ce348a
fix: use match_address when locking exclusive wallets
...
LockTradeAddress queried bep_order with match_addr (wallet column),
causing Error 1054 and breaking exclusive address checks.
2026-07-14 01:11:03 +08:00
v03413
43c579198a
fix: remove order fingerprint index
2026-07-08 17:45:24 +08:00
v03413
e180b52c9a
Merge branch 'refs/heads/main' into Fingerprint
...
# Conflicts:
# app/handler/epusdt/epusdt.go
# app/model/order.go
# app/model/trade.go
2026-07-08 17:38:16 +08:00
v03413
3ca46e7fb9
fix: enforce fingerprint checks on payments
2026-07-08 17:32:11 +08:00
v03413
e5e847f18f
feat: always allow payment type reselect
2026-07-08 10:45:51 +08:00
v03413
451da12e09
feat: add client fingerprint checks for orders
2026-07-08 09:20:29 +08:00
betaxab
79982c935f
fix: order model: add default:0 value to fix #211
2026-06-26 13:17:50 +08:00
betaxab
aafbac7b7b
feat: Add the ability to reselect order trade types
2026-06-24 00:51:20 +08:00
v03413
13d3fad174
refactor: move block api package to core
2026-06-21 01:30:04 +08:00
v03413
5e598cd2f3
feat: add unified checkout template
2026-06-21 01:24:12 +08:00
v03413
d458ef7ca3
feat: add API-backed block lookback
2026-06-19 01:33:56 +08:00
Jason.li
1e52f40a6c
Merge origin/main into payment reconciliation fix
2026-06-07 14:40:38 +08:00
Jason.li
f28ae2aa8d
fix(solana): reconcile missed token payments
...
Add a Solana reconciliation task that backfills recent waiting, expired, and failed orders by scanning token accounts, signatures, and parsed transactions for matching SPL transfers.
Reuse shared order matching for realtime transfer handling, return DB errors from MarkConfirming, and keep confirming orders eligible when the on-chain payment timestamp was inside the order window even if final confirmation happens after expiry.
2026-06-07 12:51:23 +08:00
v03413
2bf1406566
feat: rename TON native coin to GRAM
...
ref: https://t.me/toncoin/2384
ref: https://ton.vote/EQDQvywF226NXojPky_9gwbCz0FPoygqY11bGl03SONNBs5V/proposal/EQAv-VS2OM80SYLB0ouRWRcpFg4J0L-egUf1-utF-OJ6h0rK
2026-06-03 15:25:41 +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
cb5aed93c6
perf: add order notify retry index
2026-05-02 17:18:05 +08:00
v03413
30eb6659d8
feat: 实现钱包地址独占模式 & 安全优化
2026-04-14 13:36:54 +08:00
v03413
6a2f3b6d6e
feat: add PostgreSQL database support
2026-02-26 14:51:53 +08:00
betaxab
13388f197d
feat: admin: order/create api
2026-02-19 02:55:30 +08:00
betaxab
a3c2693417
feat: Add Order creation API
2026-02-18 18:17:49 +08:00
v03413
35cb4b847d
fix: x-layer usdt contract address change
...
resolved: https://github.com/v03413/BEpusdt/issues/153
resolved: https://github.com/v03413/BEpusdt/issues/150
2026-02-04 20:33:47 +08:00
v03413
534030bd2f
feat: 增加 X Layer USD₮0 收款支持
...
resolved: https://github.com/v03413/BEpusdt/issues/150
2026-02-04 17:06:32 +08:00
v03413
1c6152f568
fix: 处理报错 record not found
2026-01-23 16:20:45 +08:00
v03413
8043da9eae
refactor: update conf initialization and change Order field type
2026-01-20 11:36:47 +08:00
v03413
6c03dab7c8
refactor: change time columns to datetime format
2026-01-17 19:35:49 +08:00
v03413
bdf6fab368
fix: 尽量约束数据库出现NULL值问题
2026-01-16 11:01:41 +08:00
long2ice
07b4fdb559
refactor: update Order model to use pointer for ConfirmedAt and simplify variable declarations
2026-01-16 10:36:50 +08:00
v03413
f38ad4943f
refactor: expand varchar length for addresses and txid
2026-01-16 10:30:40 +08:00
v03413
9f2781cafd
perf: 取消订单交易哈希的唯一性限制
...
因为真的有人会乱填同一个交易哈希
2026-01-16 09:32:30 +08:00
v03413
58e38efe21
feat: 增加可选订单金额匹配模式
2026-01-12 10:40:43 +08:00
v03413
224419f0ef
fix: 修复优化数据库问题 SQLITE_BUSY
...
sqlite3: database is locked (5) (SQLITE_BUSY)
2026-01-07 16:16:54 +08:00
v03413
12a363e9fe
perf: 优化原子颗粒度处理健壮性
2026-01-05 15:44:47 +08:00
v03413
148e6170c5
style: 增加交易管理显示币种
2026-01-05 15:07:50 +08:00
v03413
26a3295794
perf: 进一步调整收缩配置项
2026-01-05 14:42:15 +08:00
v03413
566b3077bd
perf: 优化后台交易订单管理体验
2026-01-05 11:38:04 +08:00
v03413
7521844241
perf: 优化统一管理配置项 & 合并支持 Plasma
...
ref: https://github.com/v03413/BEpusdt/pull/117/
2026-01-04 16:18:21 +08:00
v03413
ad56be1af7
perf: 优化适配支持 eth 和 bnb
2026-01-04 10:48:05 +08:00
v03413
bf530dc245
Merge Add BNB-BEP20 & ETH-ERC20 native token support
...
手动合并入1.23.0 ref: https://github.com/v03413/BEpusdt/pull/128
2026-01-04 01:23:53 +08:00
v03413
c623b4ebe6
针对 交易类型 增加定义强类型校验
2026-01-04 01:23:53 +08:00
v03413
11cd54edcf
结构标签调整
2026-01-04 01:23:53 +08:00
v03413
734da0aa83
Update
...
Update
Update
update
update
update
Update
2026-01-04 01:23:53 +08:00