From 80435f947899119ee09cf57c88f1296a120c7548 Mon Sep 17 00:00:00 2001 From: yezian Date: Tue, 6 Feb 2024 00:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E5=BE=AE=E4=BF=A1native=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0error=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pay/[weixin]/error.jsx | 15 +++++++++++++++ app/pay/[weixin]/page.jsx | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 app/pay/[weixin]/error.jsx 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) {