绑定抵扣

master
zhanggucheng 3 years ago
parent 411c91a7db
commit 20f6115765

@ -294,7 +294,11 @@ class SpendController extends Controller {
$pay_where = substr ( $orderno, 0, 2 );
$map ['pay_order_number'] = $orderno;
$result = M ( 'Spend', 'tab_' )->field ( "pay_status" )->where ( $map )->find ();
$this->assign("paytype", 'platform');
$this->assign("pay_amount", $result['cost']+$result['deduction_amount']);
$this->assign("goods", $result['props_name']);
$this->assign ( 'paystatus', $result ['pay_status'] );
$this->display ( 'pay_success3' );
}

@ -70,13 +70,21 @@ border: 1px solid #999;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
try{
if(isAndroid){
window.txyxsdk.getPayResult('succeed');
if ("{$game_id}" == "256") {
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
} else {
window.txyxsdk.getPayResult('succeed');
}
}else{
window.webkit.messageHandlers.exchangeResult.postMessage(1);
}
}catch(err){
if(isAndroid){
window.mengchuang.getPayResult('succeed');
if ("{$game_id}" == "256") {
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
} else {
window.txyxsdk.getPayResult('succeed');
}
}else{
window.webkit.messageHandlers.exchangeResult.postMessage(1);
}
@ -100,7 +108,11 @@ var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
try{
if(isAndroid){
window.txyxsdk.getPayResult('fail');
if ("{$game_id}" == "256") {
window.txyxsdk.getPayResult('fail', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
} else {
window.txyxsdk.getPayResult('fail');
}
}else{
window.webkit.messageHandlers.exchangeResult.postMessage(0);
}
@ -143,7 +155,11 @@ $("#back_success").click(function() {
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
if(isAndroid){
window.txyxsdk.getPayResult('succeed');
if ("{$game_id}" == "256") {
window.txyxsdk.getPayResult('succeed', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
} else {
window.txyxsdk.getPayResult('succeed');
}
}else{
<if condition="get_wx_type() neq 1">
@ -177,7 +193,11 @@ $("#back_error").click(function() {
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
if(isAndroid){
window.txyxsdk.getPayResult('fail');
if ("{$game_id}" == "256") {
window.txyxsdk.getPayResult('fail', "{$goods}", "{$goods}", "0", 1, "{$paytype}", parseInt("{$pay_amount}"));
} else {
window.txyxsdk.getPayResult('fail');
}
}else{
<if condition="get_wx_type() neq 1">
if (!Scheme)

Loading…
Cancel
Save