From 0911faeefae55425880e6574565152391b564e50 Mon Sep 17 00:00:00 2001 From: yezian Date: Mon, 17 Mar 2025 20:18:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dapp=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=B0=83=E8=B5=B7=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pay/page.jsx | 4 ++-- app/vip/page.jsx | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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