diff --git a/app/[user_id]/_components/WechatBar/index.jsx b/app/[user_id]/_components/WechatBar/index.jsx
index 59713a3..3da9a67 100644
--- a/app/[user_id]/_components/WechatBar/index.jsx
+++ b/app/[user_id]/_components/WechatBar/index.jsx
@@ -32,6 +32,7 @@ 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(
@@ -44,6 +45,8 @@ export default function WechatBar({
body: JSON.stringify({
uid: streamerMid,
pay_type: type,
+ redirect_url:
+ type === "yeepay_wxpay_h5" ? window.location.href : "",
...base,
}),
}
@@ -63,6 +66,12 @@ 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;
@@ -140,7 +149,7 @@ export default function WechatBar({
diff --git a/app/pay/page.jsx b/app/pay/page.jsx
index 8835695..8eeeb51 100644
--- a/app/pay/page.jsx
+++ b/app/pay/page.jsx
@@ -98,6 +98,7 @@ 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",
};
@@ -129,6 +130,12 @@ 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;
@@ -273,9 +280,9 @@ export default function Pay() {
)}
-
+
+
+
+
diff --git a/app/vip/page.jsx b/app/vip/page.jsx
index 4680566..02ea944 100644
--- a/app/vip/page.jsx
+++ b/app/vip/page.jsx
@@ -89,6 +89,7 @@ export default function Vip() {
...base,
product_id: "membership",
pay_type: type,
+ redirect_url: type === "yeepay_wxpay_h5" ? window.location.href : "",
from: "app",
};
@@ -120,6 +121,12 @@ 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;
@@ -246,9 +253,9 @@ export default function Vip() {
-
+
createOrder("alipay_h5")}
+ onClick={() => createOrder("yeepay_alipay_h5")}
className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full"
>
@@ -257,6 +264,22 @@ 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 69f419c..5a9c28a 100644
--- a/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx
+++ b/app/zone/pay/[zid]/[product_id]/[moment_id]/page.jsx
@@ -110,6 +110,7 @@ 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",
};
@@ -135,6 +136,12 @@ 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;
@@ -305,9 +312,9 @@ export default function Pay({ params }) {
-
+
createOrder("alipay_h5")}
+ onClick={() => createOrder("yeepay_alipay_h5")}
className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full"
>
@@ -316,6 +323,22 @@ 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"
+ >
+
+
+ 微信支付
+
+
+
确认购买即视为同意