This commit is contained in:
yezian 2024-05-30 13:44:43 +08:00
parent 364c86aeb4
commit cd8f094fec
1 changed files with 3 additions and 2 deletions

View File

@ -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(
@ -66,10 +67,10 @@ export default function WechatBar({
//
switch (type) {
case "yeepay_alipay_h5":
router.push(`${data.data.yeepay_alipay_h5_param_str}`);
router.push(`${temData.data.yeepay_alipay_h5_param_str}`);
break;
case "yeepay_wxpay_h5":
router.push(`${data.data.yeepay_wxpay_h5_param_str}`);
router.push(`${temData.data.yeepay_wxpay_h5_param_str}`);
break;
case "alipay_h5":
router.push(`${temData.data.alipay_h5_param_str}`);