|
|
|
@ -101,6 +101,9 @@ $(function() {
|
|
|
|
|
'user_token' : user_token,
|
|
|
|
|
},
|
|
|
|
|
success: function(r) {
|
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
|
|
|
|
|
|
if (r.payStatus == '1') {
|
|
|
|
|
if (r.type == "deposit") {
|
|
|
|
|
confirm("支付成功");
|
|
|
|
@ -109,12 +112,19 @@ $(function() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (r.type == "deposit") {
|
|
|
|
|
if (!isAndroid) {
|
|
|
|
|
try {
|
|
|
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(1);
|
|
|
|
|
} catch(err) {
|
|
|
|
|
window.location.href = Scheme+"://1&back";
|
|
|
|
|
}
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.location.href = r.url;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (r.type == "spend") {
|
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
|
if (r.payStatus == '1') {
|
|
|
|
|
if (isAndroid) {
|
|
|
|
|
window.txyxsdk.getPayResult('succeed');
|
|
|
|
|