diff --git a/app/pay/[weixin]/error.jsx b/app/pay/[weixin]/error.jsx new file mode 100644 index 0000000..81e8876 --- /dev/null +++ b/app/pay/[weixin]/error.jsx @@ -0,0 +1,15 @@ +"use client"; // Error components must be Client Components + +export default function Error() { + return ( +
+
+

+ 请打开微信扫码支付 +
+ 完成支付后关闭此页面即可 +

+
+
+ ); +} diff --git a/app/pay/[weixin]/page.jsx b/app/pay/[weixin]/page.jsx index c785736..3faf14e 100644 --- a/app/pay/[weixin]/page.jsx +++ b/app/pay/[weixin]/page.jsx @@ -40,7 +40,7 @@ export default function Weixin({ params }) { window.open("weixin://", "_blank"); return; } - window.open("weixin://", "_blank"); + window.open("weixin://scanqrcode", "_blank"); }; if (isLoading) {