fix gatewayjs redirect

master
luoyang 6 years ago
parent 2d8bf8931d
commit 162f4a7ef4

@ -10,6 +10,7 @@ $(document).ready(function () {
alert('debug:origin redirect:' + window.redirect);
}
var redirect = window.redirect;
if (window.redirect !=null) {
while (redirect.indexOf('://') < 0) {
redirect = decodeURIComponent(redirect);
if (redirect == window.redirect) {
@ -17,6 +18,7 @@ $(document).ready(function () {
}
window.redirect = redirect;
}
}
}
@ -55,8 +57,9 @@ $(document).ready(function () {
} else {
// 如果没有注入则监听注入的事件
document.addEventListener('AlipayJSBridgeReady', function () {
});
callPayment(pay.trade_no);
}, false);
}
},

Loading…
Cancel
Save