更换微信支付域名
This commit is contained in:
parent
3a7be77dcb
commit
b8d413ca09
|
@ -68,9 +68,9 @@ export default function WechatBar({
|
||||||
break;
|
break;
|
||||||
case "wxpay_h5":
|
case "wxpay_h5":
|
||||||
router.push(
|
router.push(
|
||||||
`https://weixin.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
|
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
|
||||||
temData.data.wxpay_h5_param_str +
|
temData.data.wxpay_h5_param_str +
|
||||||
"&redirect_url=https%3A%2F%2Fweixin.tiefen.fun%2Fpurchased"
|
"&redirect_url=https%3A%2F%2Fshop.tiefen.fun%2Fpurchased"
|
||||||
)}`
|
)}`
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -134,7 +134,7 @@ export default function Pay() {
|
||||||
break;
|
break;
|
||||||
case "wxpay_h5":
|
case "wxpay_h5":
|
||||||
router.push(
|
router.push(
|
||||||
`https://weixin.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
|
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
|
||||||
data.data.wxpay_h5_param_str
|
data.data.wxpay_h5_param_str
|
||||||
)}`
|
)}`
|
||||||
);
|
);
|
||||||
|
|
|
@ -13,7 +13,7 @@ export default function Purchased() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const prepare = async () => {
|
const prepare = async () => {
|
||||||
if (window.location.origin === "https://weixin.tiefen.fun") {
|
if (window.location.origin === "https://shop.tiefen.fun") {
|
||||||
router.replace("https://tiefen.fun/purchased");
|
router.replace("https://tiefen.fun/purchased");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,7 +125,7 @@ export default function Vip() {
|
||||||
break;
|
break;
|
||||||
case "wxpay_h5":
|
case "wxpay_h5":
|
||||||
router.push(
|
router.push(
|
||||||
`https://weixin.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
|
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
|
||||||
data.data.wxpay_h5_param_str
|
data.data.wxpay_h5_param_str
|
||||||
)}`
|
)}`
|
||||||
);
|
);
|
||||||
|
|
|
@ -140,7 +140,7 @@ export default function Pay({ params }) {
|
||||||
break;
|
break;
|
||||||
case "wxpay_h5":
|
case "wxpay_h5":
|
||||||
router.push(
|
router.push(
|
||||||
`https://weixin.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
|
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
|
||||||
data.data.wxpay_h5_param_str
|
data.data.wxpay_h5_param_str
|
||||||
)}`
|
)}`
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue