diff --git a/Application/Sdk/Controller/SpendController.class.php b/Application/Sdk/Controller/SpendController.class.php index ebd416e1..611700a6 100644 --- a/Application/Sdk/Controller/SpendController.class.php +++ b/Application/Sdk/Controller/SpendController.class.php @@ -299,6 +299,7 @@ class SpendController extends Controller { $this->assign("paytype", 'platform'); $this->assign("pay_amount", $result['cost']+$result['deduction_amount']); $this->assign("goods", $result['props_name']); + $this->assign("order_id", $result['pay_order_number']); $this->assign ( 'paystatus', $result ['pay_status'] ); $this->display ( 'pay_success3' ); @@ -394,6 +395,7 @@ ADD COLUMN `pay_url` varchar(255) NOT NULL DEFAULT '' AFTER `check_sign`; $this->assign("orderno", $orderno); $this->assign("paytype", $paytype); $this->assign("pay_amount", $result['cost']+$result['deduction_amount']); + $this->assign("order_id", $result['pay_order_number']); $this->assign("goods", $result['props_name']); $this->assign ('pay_url', $result['pay_url']); $this->assign("sdk_version", $result['sdk_version']?:0); diff --git a/Application/Sdk/View/default/Spend/pay_success3.html b/Application/Sdk/View/default/Spend/pay_success3.html index f20c22eb..75147d78 100644 --- a/Application/Sdk/View/default/Spend/pay_success3.html +++ b/Application/Sdk/View/default/Spend/pay_success3.html @@ -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'); } diff --git a/Application/Sdk/View/default/Spend/paycallback.html b/Application/Sdk/View/default/Spend/paycallback.html index ae055d6b..fce246cf 100644 --- a/Application/Sdk/View/default/Spend/paycallback.html +++ b/Application/Sdk/View/default/Spend/paycallback.html @@ -205,7 +205,7 @@ $(function() { if (r.payStatus == '1') { 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'); } @@ -219,7 +219,7 @@ $(function() { } else { 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'); }