diff --git a/app/[user_id]/_components/WechatBar/index.jsx b/app/[user_id]/_components/WechatBar/index.jsx index 3da9a67..59713a3 100644 --- a/app/[user_id]/_components/WechatBar/index.jsx +++ b/app/[user_id]/_components/WechatBar/index.jsx @@ -32,7 +32,6 @@ export default function WechatBar({ const signature = generateSignature({ uid: streamerMid, pay_type: type, - redirect_url: type === "yeepay_wxpay_h5" ? window.location.href : "", ...base, }); const response = await fetch( @@ -45,8 +44,6 @@ export default function WechatBar({ body: JSON.stringify({ uid: streamerMid, pay_type: type, - redirect_url: - type === "yeepay_wxpay_h5" ? window.location.href : "", ...base, }), } @@ -66,12 +63,6 @@ export default function WechatBar({ } //如果金币不够情况 switch (type) { - case "yeepay_alipay_h5": - router.push(`${temData.data.yeepay_alipay_h5_param_str}`); - break; - case "yeepay_wxpay_h5": - router.push(`${temData.data.yeepay_wxpay_h5_param_str}`); - break; case "alipay_h5": router.push(`${temData.data.alipay_h5_param_str}`); break; @@ -149,7 +140,7 @@ export default function WechatBar({
diff --git a/app/pay/page.jsx b/app/pay/page.jsx index 8eeeb51..8835695 100644 --- a/app/pay/page.jsx +++ b/app/pay/page.jsx @@ -98,7 +98,6 @@ export default function Pay() { product_id: customCoin.selected ? "h5_custom_coin" : selectedPrice.id, custom_coins: customCoin.selected ? customCoin.num : 0, pay_type: type, - redirect_url: type === "yeepay_wxpay_h5" ? window.location.href : "", from: "app", }; @@ -130,12 +129,6 @@ export default function Pay() { return; } switch (type) { - case "yeepay_alipay_h5": - router.push(`${data.data.yeepay_alipay_h5_param_str}`); - break; - case "yeepay_wxpay_h5": - router.push(`${data.data.yeepay_wxpay_h5_param_str}`); - break; case "alipay_h5": router.push(`${data.data.alipay_h5_param_str}`); break; @@ -280,9 +273,9 @@ export default function Pay() {
)}
-
+
-
- -
diff --git a/app/vip/page.jsx b/app/vip/page.jsx index 02ea944..4680566 100644 --- a/app/vip/page.jsx +++ b/app/vip/page.jsx @@ -89,7 +89,6 @@ export default function Vip() { ...base, product_id: "membership", pay_type: type, - redirect_url: type === "yeepay_wxpay_h5" ? window.location.href : "", from: "app", }; @@ -121,12 +120,6 @@ export default function Vip() { return; } switch (type) { - case "yeepay_alipay_h5": - router.push(`${data.data.yeepay_alipay_h5_param_str}`); - break; - case "yeepay_wxpay_h5": - router.push(`${data.data.yeepay_wxpay_h5_param_str}`); - break; case "alipay_h5": router.push(`${data.data.alipay_h5_param_str}`); break; @@ -253,9 +246,9 @@ export default function Vip() {
-
+
createOrder("yeepay_alipay_h5")} + onClick={() => createOrder("alipay_h5")} className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full" > @@ -264,22 +257,6 @@ export default function Vip() {

-
-
createOrder("yeepay_wxpay_h5")} - className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full" - > - - - -

- 微信支付 -

-
-

确认购买即视为同意 diff --git a/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx b/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx index 5a9c28a..69f419c 100644 --- a/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx +++ b/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx @@ -110,7 +110,6 @@ export default function Pay({ params }) { moment_id: parseInt(params.moment_id), product_id: checked ? "h5_zone_superfanship" : params.product_id, pay_type: type, - redirect_url: type === "yeepay_wxpay_h5" ? window.location.href : "", from: "app", }; @@ -136,12 +135,6 @@ export default function Pay({ params }) { return; } switch (type) { - case "yeepay_alipay_h5": - router.push(`${data.data.yeepay_alipay_h5_param_str}`); - break; - case "yeepay_wxpay_h5": - router.push(`${data.data.yeepay_wxpay_h5_param_str}`); - break; case "alipay_h5": router.push(`${data.data.alipay_h5_param_str}`); break; @@ -312,9 +305,9 @@ export default function Pay({ params }) {

-
+
createOrder("yeepay_alipay_h5")} + onClick={() => createOrder("alipay_h5")} className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full" > @@ -323,22 +316,6 @@ export default function Pay({ params }) {

-
-
createOrder("yeepay_wxpay_h5")} - className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full" - > - - - -

- 微信支付 -

-
-

确认购买即视为同意