debug
This commit is contained in:
parent
364c86aeb4
commit
cd8f094fec
|
@ -32,6 +32,7 @@ export default function WechatBar({
|
||||||
const signature = generateSignature({
|
const signature = generateSignature({
|
||||||
uid: streamerMid,
|
uid: streamerMid,
|
||||||
pay_type: type,
|
pay_type: type,
|
||||||
|
redirect_url: type === "yeepay_wxpay_h5" ? window.location.href : "",
|
||||||
...base,
|
...base,
|
||||||
});
|
});
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
|
@ -66,10 +67,10 @@ export default function WechatBar({
|
||||||
//如果金币不够情况
|
//如果金币不够情况
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "yeepay_alipay_h5":
|
case "yeepay_alipay_h5":
|
||||||
router.push(`${data.data.yeepay_alipay_h5_param_str}`);
|
router.push(`${temData.data.yeepay_alipay_h5_param_str}`);
|
||||||
break;
|
break;
|
||||||
case "yeepay_wxpay_h5":
|
case "yeepay_wxpay_h5":
|
||||||
router.push(`${data.data.yeepay_wxpay_h5_param_str}`);
|
router.push(`${temData.data.yeepay_wxpay_h5_param_str}`);
|
||||||
break;
|
break;
|
||||||
case "alipay_h5":
|
case "alipay_h5":
|
||||||
router.push(`${temData.data.alipay_h5_param_str}`);
|
router.push(`${temData.data.alipay_h5_param_str}`);
|
||||||
|
|
Loading…
Reference in New Issue