diff --git a/app/pay/page.jsx b/app/pay/page.jsx index f6cd8d4..f4ab797 100644 --- a/app/pay/page.jsx +++ b/app/pay/page.jsx @@ -162,7 +162,7 @@ export default function Pay() { router.push(`${data.data.alipay_h5_param_str}`); break; case "wxpay_h5": - if (base.b_ch === "h5") { + if (base.b_ch === "h5" && !base.b_model) { // 使用postMessage向父页面发送跳转请求 const redirectUrl = `https://yibowanhe.top?url=${encodeURIComponent( data.data.wxpay_h5_param_str @@ -258,7 +258,7 @@ export default function Pay() { router.push(`${data.data.alipay_h5_param_str}`); break; case "wxpay_h5": - if (base.b_ch === "h5") { + if (base.b_ch === "h5" && !base.b_model) { // 使用postMessage向父页面发送跳转请求 const redirectUrl = `https://yibowanhe.top?url=${encodeURIComponent( data.data.wxpay_h5_param_str diff --git a/app/vip/page.jsx b/app/vip/page.jsx index e52e511..1454f0c 100644 --- a/app/vip/page.jsx +++ b/app/vip/page.jsx @@ -6,6 +6,7 @@ import webviewBaseRequest from "@/utils/webviewBaseRequest"; import Link from "next/link"; import { Toast } from "antd-mobile"; import { useRouter, useSearchParams } from "next/navigation"; + export default function Vip() { const router = useRouter(); const searchParams = useSearchParams(); @@ -132,7 +133,7 @@ export default function Vip() { router.push(`${data.data.alipay_h5_param_str}`); break; case "wxpay_h5": - if (base.b_ch === "h5") { + if (base.b_ch === "h5" && !base.b_model) { // 使用postMessage向父页面发送跳转请求 const redirectUrl = `https://yibowanhe.top?url=${encodeURIComponent( data.data.wxpay_h5_param_str @@ -214,7 +215,7 @@ export default function Vip() { router.push(`${data.data.alipay_h5_param_str}`); break; case "wxpay_h5": - if (base.b_ch === "h5") { + if (base.b_ch === "h5" && !base.b_model) { // 使用postMessage向父页面发送跳转请求 const redirectUrl = `https://yibowanhe.top?url=${encodeURIComponent( data.data.wxpay_h5_param_str