fix: 客服渠道由于添加checkUrl参数导致无法正常支付

This commit is contained in:
guanchao
2026-10-15 16:54:20 +08:00
parent 5b63b044b2
commit 95615622e7
+10 -2
View File
@@ -120,8 +120,16 @@
setTimeout(() => {
let checkUrl;
try { checkUrl = new URL(param.checkUrl || 'https://q6rvwvtnga.sealoshzh.site/wx/checkIos'); }
catch { alert('支付地址无效,请重新下单'); return; }
try {
checkUrl = new URL(
itemConfig.outTradeNo.startsWith('wct_')
? 'https://sor779u2w8.sealoshzh.site/wx/checkIos'
: 'https://q6rvwvtnga.sealoshzh.site/wx/checkIos'
);
} catch {
alert('支付地址无效,请重新下单');
return;
}
if (checkUrl.protocol !== 'https:' || checkUrl.pathname !== '/wx/checkIos' || checkUrl.username || checkUrl.password) {
alert('支付地址无效,请重新下单'); return;
}