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) {