attach sign params into redirection

master
yixian 6 years ago
parent 8d64f75ff5
commit de10b4f846

@ -49,7 +49,7 @@ $(document).ready(function () {
dataType: 'json',
success: function (pay) {
if (pay.direct_paid) {
location.href = window.redirect + (window.redirect.indexOf('?') < 0 ? '?' : '&') + 'success=true';
startCheckOrder(window.client_moniker, window.merchant_orderid);
return;
}
if (window.AlipayJSBridge) {
@ -114,7 +114,7 @@ $(document).ready(function () {
dataType: 'json',
success: function (res) {
if (res.paid) {
location.href = window.redirect + (window.redirect.indexOf('?') < 0 ? '?' : '&') + 'success=true';
location.href = window.redirect + (window.redirect.indexOf('?') < 0 ? '?' : '&') + 'success=true&time=' + res.time + '&nonce_str=' + res.nonce_str + '&sign=' + res.sign;
} else {
setTimeout(checkOrderStd, 500);
}

@ -54,7 +54,7 @@ $(document).ready(function () {
}
if (pay.direct_paid) {
dataCache.paying = false;
location.href = window.redirect + (window.redirect.indexOf('?') < 0 ? '?' : '&') + 'success=true';
startCheckOrder(window.client_moniker, window.merchant_orderid);
}
var paydata = pay.jsapi;
invokePay(paydata);
@ -109,7 +109,7 @@ $(document).ready(function () {
dataType: 'json',
success: function (res) {
if (res.paid) {
location.href = window.redirect + (window.redirect.indexOf('?') < 0 ? '?' : '&') + 'success=true';
location.href = window.redirect + (window.redirect.indexOf('?') < 0 ? '?' : '&') + 'success=true&time=' + res.time + '&nonce_str=' + res.nonce_str + '&sign=' + res.sign;;
} else {
setTimeout(checkOrderStd, 500);
}

Loading…
Cancel
Save