From 38d69b98c1ca87db2e63c4f6fb19697e9539ad78 Mon Sep 17 00:00:00 2001 From: yezian Date: Fri, 14 Mar 2025 19:55:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=AE=E4=BF=A1=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=9C=A8h5=E7=9A=84=E8=B7=B3=E8=BD=AC=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pay/page.jsx | 28 ++++++++++++++++++++-------- app/vip/page.jsx | 28 ++++++++++++++++++++-------- 2 files changed, 40 insertions(+), 16 deletions(-) diff --git a/app/pay/page.jsx b/app/pay/page.jsx index 28e6538..b8aa4da 100644 --- a/app/pay/page.jsx +++ b/app/pay/page.jsx @@ -162,11 +162,17 @@ export default function Pay() { router.push(`${data.data.alipay_h5_param_str}`); break; case "wxpay_h5": - router.push( - `https://yibowanhe.top?url=${encodeURIComponent( + if (base.b_ch === "h5") { + window.parent.location.href = `https://yibowanhe.top?url=${encodeURIComponent( data.data.wxpay_h5_param_str - )}` - ); + )}`; + } else { + router.push( + `https://yibowanhe.top?url=${encodeURIComponent( + data.data.wxpay_h5_param_str + )}` + ); + } break; default: router.push(`${data.data.alipay_h5_param_str}`); @@ -244,11 +250,17 @@ export default function Pay() { router.push(`${data.data.alipay_h5_param_str}`); break; case "wxpay_h5": - router.push( - `https://yibowanhe.top?url=${encodeURIComponent( + if (base.b_ch === "h5") { + window.parent.location.href = `https://yibowanhe.top?url=${encodeURIComponent( data.data.wxpay_h5_param_str - )}` - ); + )}`; + } else { + router.push( + `https://yibowanhe.top?url=${encodeURIComponent( + data.data.wxpay_h5_param_str + )}` + ); + } break; default: router.push(`${data.data.alipay_h5_param_str}`); diff --git a/app/vip/page.jsx b/app/vip/page.jsx index 44cfbb0..ceb27b5 100644 --- a/app/vip/page.jsx +++ b/app/vip/page.jsx @@ -132,11 +132,17 @@ export default function Vip() { router.push(`${data.data.alipay_h5_param_str}`); break; case "wxpay_h5": - router.push( - `https://yibowanhe.top?url=${encodeURIComponent( + if (base.b_ch === "h5") { + window.parent.location.href = `https://yibowanhe.top?url=${encodeURIComponent( data.data.wxpay_h5_param_str - )}` - ); + )}`; + } else { + router.push( + `https://yibowanhe.top?url=${encodeURIComponent( + data.data.wxpay_h5_param_str + )}` + ); + } break; default: router.push(`${data.data.alipay_h5_param_str}`); @@ -200,11 +206,17 @@ export default function Vip() { router.push(`${data.data.alipay_h5_param_str}`); break; case "wxpay_h5": - router.push( - `https://yibowanhe.top?url=${encodeURIComponent( + if (base.b_ch === "h5") { + window.parent.location.href = `https://yibowanhe.top?url=${encodeURIComponent( data.data.wxpay_h5_param_str - )}` - ); + )}`; + } else { + router.push( + `https://yibowanhe.top?url=${encodeURIComponent( + data.data.wxpay_h5_param_str + )}` + ); + } break; default: router.push(`${data.data.alipay_h5_param_str}`);