Merge pull request '更换微信支付域名' (#79) from wechatpay into test
Reviewed-on: https://git.wishpal.cn/wishpal_ironfan/tiefen_space_web/pulls/79
This commit is contained in:
commit
6b76a3d87a
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
)}`
|
||||
);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
)}`
|
||||
);
|
||||
|
|
|
@ -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
|
||||
)}`
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue