更换微信支付域名 #79

Merged
yezian merged 1 commits from wechatpay into test 2024-05-07 20:22:49 +08:00
5 changed files with 6 additions and 6 deletions

View File

@ -68,9 +68,9 @@ export default function WechatBar({
break;
case "wxpay_h5":
router.push(
`https://weixin.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
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;

View File

@ -134,7 +134,7 @@ export default function Pay() {
break;
case "wxpay_h5":
router.push(
`https://weixin.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);

View File

@ -13,7 +13,7 @@ export default function Purchased() {
const router = useRouter();
useEffect(() => {
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");
return;
}

View File

@ -125,7 +125,7 @@ export default function Vip() {
break;
case "wxpay_h5":
router.push(
`https://weixin.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);

View File

@ -140,7 +140,7 @@ export default function Pay({ params }) {
break;
case "wxpay_h5":
router.push(
`https://weixin.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
`https://shop.tiefen.fun/pay/wxpay_h5/${encodeURIComponent(
data.data.wxpay_h5_param_str
)}`
);