巨量众横推广

master
tping 3 years ago
parent 9964cdeadd
commit 77f8707d45

@ -385,9 +385,11 @@ ADD COLUMN `pay_url` varchar(255) NOT NULL DEFAULT '' AFTER `check_sign`;
}
// pp($orderno);
$this->assign('payway', $payway);
// $this->assign('payway', $payway);
$this->assign("orderno", $orderno);
$this->assign("paytype", $paytype);
$this->assign("pay_amount", $result['pay_amount']);
$this->assign("goods", $result['props_name']);
$this->assign ('pay_url', $result['pay_url']);
$this->assign("sdk_version", $result['sdk_version']?:0);
$this->assign ('Scheme', $Scheme);

@ -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);

Loading…
Cancel
Save