Add WeChat in-app JSAPI recharge for g2.tkmind.cn.

Use JSAPI with bound openid inside WeChat instead of QR long-press, and include related auth redirect and admin UX fixes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-06-16 16:20:04 +08:00
parent bb70634a96
commit f818dd0307
15 changed files with 260 additions and 32 deletions
+1 -1
View File
@@ -461,7 +461,7 @@ CREATE TABLE IF NOT EXISTS h5_payment_orders (
amount_cents BIGINT NOT NULL,
channel ENUM('wechat') NOT NULL DEFAULT 'wechat',
status ENUM('pending', 'paid', 'failed', 'expired', 'refunded') NOT NULL DEFAULT 'pending',
pay_mode ENUM('native', 'h5') NOT NULL DEFAULT 'native',
pay_mode ENUM('native', 'h5', 'jsapi') NOT NULL DEFAULT 'native',
out_trade_no VARCHAR(64) NOT NULL,
provider_txn VARCHAR(128) NULL,
code_url VARCHAR(512) NULL,