Merge pull request '1' (#39) from feature/jlzhtg into master

Reviewed-on: http://8.136.139.249:3000/wmtx/sdk/pulls/39
master
张谷城 3 years ago
commit 3f3fbd66a9

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

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

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

Loading…
Cancel
Save