diff --git a/app/api/pay/route.ts b/app/api/pay/route.ts index 35c6ebf..a0e31c8 100644 --- a/app/api/pay/route.ts +++ b/app/api/pay/route.ts @@ -305,7 +305,7 @@ export async function POST(request: NextRequest) { /[&<>"']/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[c] || c ); - const ch = String(resData.channel || "alipay").toLowerCase(); + const ch = String(resData.channel || "wxpay").toLowerCase(); const isWx = ch === "wxpay" || ch === "wx" || ch === "wechat"; const title = isWx ? "微信扫码支付" : "支付宝扫码支付"; const hint = isWx ? "请使用微信扫描下方二维码完成支付" : "请使用支付宝扫描下方二维码完成支付";