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