|
|
|
@ -93,6 +93,7 @@ function paycallback() {
|
|
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
|
$(window).load( function(){
|
|
|
|
|
return ;
|
|
|
|
|
if ($(".gopay").val() == 1) {
|
|
|
|
|
if ($(".aliapp").val() == 1) {
|
|
|
|
|
var url = $(".gopay_url").val();
|
|
|
|
@ -204,7 +205,11 @@ $(function() {
|
|
|
|
|
if (r.type == "spend") {
|
|
|
|
|
if (r.payStatus == '1') {
|
|
|
|
|
if (isAndroid) {
|
|
|
|
|
if ("{$game_id}" == "256") {
|
|
|
|
|
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "0", 1, "ec", parseInt("{$pay_amount}"));
|
|
|
|
|
} else {
|
|
|
|
|
window.txyxsdk.getPayResult('succeed');
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
try {
|
|
|
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(1);
|
|
|
|
@ -214,7 +219,11 @@ $(function() {
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (isAndroid) {
|
|
|
|
|
if ("{$game_id}" == "256") {
|
|
|
|
|
window.txyxsdk.getPayResult('fail', "{$goods}", "{$goods}", "0", 1, "ec", parseInt("{$pay_amount}"));
|
|
|
|
|
} else {
|
|
|
|
|
window.txyxsdk.getPayResult('fail');
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
try {
|
|
|
|
|
window.webkit.messageHandlers.exchangeResult.postMessage(0);
|
|
|
|
|