From 4f3a826481523832cb73283dde9c1b38bf00695b Mon Sep 17 00:00:00 2001 From: XingQue Date: Wed, 12 Aug 2026 20:27:58 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=94=AF=E4=BB=98=E8=AF=8A=E6=96=AD?= =?UTF-8?q?=E9=A1=B5=E5=A4=B1=E8=B4=A5=E6=97=B6=20alert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/wechat/h5_jsapi_pay.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/wechat/h5_jsapi_pay.html b/templates/wechat/h5_jsapi_pay.html index b139713..b55f322 100644 --- a/templates/wechat/h5_jsapi_pay.html +++ b/templates/wechat/h5_jsapi_pay.html @@ -215,6 +215,9 @@ push('若含「URL未注册」,对照:微信校验 URL 必须落在商户 JSAPI 授权目录前缀下'); push('当前校验 URL', String(location.href || '').split('#')[0]); push('调起用的 appId', appId); + try { + alert('支付失败诊断\n\n' + msg + '\n\nappId=' + appId + '\nURL=' + String(location.href || '').split('#')[0] + '\n\n完整日志在页面绿色区域,点「复制」'); + } catch (e) {} } }); } catch (e) {