|
|
@ -70,13 +70,21 @@ border: 1px solid #999;
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
try{
|
|
|
|
try{
|
|
|
|
if(isAndroid){
|
|
|
|
if(isAndroid){
|
|
|
|
window.txyxsdk.getPayResult('succeed');
|
|
|
|
if ("{$game_id}" == "256") {
|
|
|
|
|
|
|
|
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
window.txyxsdk.getPayResult('succeed');
|
|
|
|
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(1);
|
|
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}catch(err){
|
|
|
|
}catch(err){
|
|
|
|
if(isAndroid){
|
|
|
|
if(isAndroid){
|
|
|
|
window.mengchuang.getPayResult('succeed');
|
|
|
|
if ("{$game_id}" == "256") {
|
|
|
|
|
|
|
|
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
window.txyxsdk.getPayResult('succeed');
|
|
|
|
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(1);
|
|
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -100,7 +108,11 @@ var u = navigator.userAgent;
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
try{
|
|
|
|
try{
|
|
|
|
if(isAndroid){
|
|
|
|
if(isAndroid){
|
|
|
|
window.txyxsdk.getPayResult('fail');
|
|
|
|
if ("{$game_id}" == "256") {
|
|
|
|
|
|
|
|
window.txyxsdk.getPayResult('fail', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
window.txyxsdk.getPayResult('fail');
|
|
|
|
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(0);
|
|
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -143,7 +155,11 @@ $("#back_success").click(function() {
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
if(isAndroid){
|
|
|
|
if(isAndroid){
|
|
|
|
window.txyxsdk.getPayResult('succeed');
|
|
|
|
if ("{$game_id}" == "256") {
|
|
|
|
|
|
|
|
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
window.txyxsdk.getPayResult('succeed');
|
|
|
|
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
<if condition="get_wx_type() neq 1">
|
|
|
|
<if condition="get_wx_type() neq 1">
|
|
|
|
|
|
|
|
|
|
|
@ -177,7 +193,11 @@ $("#back_error").click(function() {
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
if(isAndroid){
|
|
|
|
if(isAndroid){
|
|
|
|
window.txyxsdk.getPayResult('fail');
|
|
|
|
if ("{$game_id}" == "256") {
|
|
|
|
|
|
|
|
window.txyxsdk.getPayResult('fail', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
window.txyxsdk.getPayResult('fail');
|
|
|
|
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
<if condition="get_wx_type() neq 1">
|
|
|
|
<if condition="get_wx_type() neq 1">
|
|
|
|
if (!Scheme)
|
|
|
|
if (!Scheme)
|
|
|
|