|
|
|
@ -71,7 +71,7 @@ border: 1px solid #999;
|
|
|
|
|
try{
|
|
|
|
|
if(isAndroid){
|
|
|
|
|
if ("{$game_id}" == "256") {
|
|
|
|
|
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "{$order_id}", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
} else {
|
|
|
|
|
window.txyxsdk.getPayResult('succeed');
|
|
|
|
|
}
|
|
|
|
@ -81,7 +81,7 @@ border: 1px solid #999;
|
|
|
|
|
}catch(err){
|
|
|
|
|
if(isAndroid){
|
|
|
|
|
if ("{$game_id}" == "256") {
|
|
|
|
|
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "{$order_id}", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
} else {
|
|
|
|
|
window.txyxsdk.getPayResult('succeed');
|
|
|
|
|
}
|
|
|
|
@ -109,7 +109,7 @@ var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终
|
|
|
|
|
try{
|
|
|
|
|
if(isAndroid){
|
|
|
|
|
if ("{$game_id}" == "256") {
|
|
|
|
|
window.txyxsdk.getPayResult('fail', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
window.txyxsdk.getPayResult('fail', "{$goods}", "{$goods}", "{$order_id}", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
} else {
|
|
|
|
|
window.txyxsdk.getPayResult('fail');
|
|
|
|
|
}
|
|
|
|
@ -156,7 +156,7 @@ $("#back_success").click(function() {
|
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
|
if(isAndroid){
|
|
|
|
|
if ("{$game_id}" == "256") {
|
|
|
|
|
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "{$order_id}", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
} else {
|
|
|
|
|
window.txyxsdk.getPayResult('succeed');
|
|
|
|
|
}
|
|
|
|
@ -194,7 +194,7 @@ $("#back_error").click(function() {
|
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
|
|
if(isAndroid){
|
|
|
|
|
if ("{$game_id}" == "256") {
|
|
|
|
|
window.txyxsdk.getPayResult('fail', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
window.txyxsdk.getPayResult('fail', "{$goods}", "{$goods}", "{$order_id}", 1, "{$paytype}", parseInt("{$pay_amount}"));
|
|
|
|
|
} else {
|
|
|
|
|
window.txyxsdk.getPayResult('fail');
|
|
|
|
|
}
|
|
|
|
|