fix: 客服渠道由于添加checkUrl参数导致无法正常支付
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user