diff --git a/app/pay/page.jsx b/app/pay/page.jsx index f09e44b..b85f9ac 100644 --- a/app/pay/page.jsx +++ b/app/pay/page.jsx @@ -102,7 +102,7 @@ export default function Pay() { }; //如果是微信jsapi支付直接跳转到中间页 - if (type === "wxpay_jsapi") { + if (type === "wxpay_h5" && base?.b_mid !== 153) { router.push(`/pay/${encodeURIComponent(JSON.stringify(body))}`); return; } @@ -122,6 +122,7 @@ export default function Pay() { } ); const data = await response.json(); + console.log(data); if (data.ret === -1) { Toast.show({ content: data.msg, @@ -132,6 +133,9 @@ export default function Pay() { case "alipay_h5": router.push(`${data.data.alipay_h5_param_str}`); break; + case "wxpay_h5": + router.push(`${data.data.wxpay_h5_param_str}`); + break; default: router.push(`${data.data.alipay_h5_param_str}`); break; @@ -282,7 +286,7 @@ export default function Pay() { */}