merge: 合并 wxpay_direct 微信支付直连分支

解决冲突:保留 main 的常量化/provider 字段/ENABLED_PAYMENT_TYPES 移除,
合并 worktree 的微信支付直连实现、notifyUrl/returnUrl 传递、签名验证优化。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
erio
2026-03-06 19:00:16 +08:00
18 changed files with 737 additions and 27 deletions

View File

@@ -47,9 +47,9 @@ export async function POST(request: NextRequest) {
amount,
paymentType: payment_type,
clientIp,
isMobile: is_mobile,
srcHost: src_host,
srcUrl: src_url,
isMobile: is_mobile,
});
// 不向客户端暴露 userName / userBalance 等隐私字段