yeepay #82

Merged
yezian merged 2 commits from yeepay into main 2024-06-14 17:33:01 +08:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit cd8f094fec - Show all commits

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}`);