diff --git a/app/pay/page.jsx b/app/pay/page.jsx index 3a9cf10..e2f62c9 100644 --- a/app/pay/page.jsx +++ b/app/pay/page.jsx @@ -134,7 +134,11 @@ export default function Pay() { router.push(`${data.data.alipay_h5_param_str}`); break; case "wxpay_jsapi": - router.push(`${data.data.wxpay_h5_param_str}`); + router.push( + `https://weixin.tiefen.fun/wxpay_h5/${encodeURIComponent( + data.data.wxpay_h5_param_str + )}` + ); break; default: router.push(`${data.data.alipay_h5_param_str}`); diff --git a/app/pay/wxpay_h5/url/page.jsx b/app/pay/wxpay_h5/url/page.jsx new file mode 100644 index 0000000..32922a8 --- /dev/null +++ b/app/pay/wxpay_h5/url/page.jsx @@ -0,0 +1,13 @@ +"use client"; + +import React, { useEffect } from "react"; +import { useRouter } from "next/navigation"; + +export default function WxpayH5({ params }) { + const router = useRouter(); + useEffect(() => { + const redirect_uri = decodeURIComponent(params.url); + router.replace(redirect_uri); + }, []); + return
; +}