From 777a7c8344a2edd034efd3b70bbfd28987722231 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 29 Nov 2019 17:58:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=98=E7=BD=91=E6=94=AF=E4=BB=98=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sdk/Controller/SpendController.class.php | 48 +++++++-------- .../Sdk/View/default/Spend/pay_success.html | 60 ++++++++----------- 2 files changed, 50 insertions(+), 58 deletions(-) diff --git a/Application/Sdk/Controller/SpendController.class.php b/Application/Sdk/Controller/SpendController.class.php index 3ab04ae10..0f6515951 100644 --- a/Application/Sdk/Controller/SpendController.class.php +++ b/Application/Sdk/Controller/SpendController.class.php @@ -81,32 +81,32 @@ class SpendController extends Controller { } public function pay_success() { - $orderno = $_GET ['orderno'] == "" ? $_GET ['out_trade_no'] : $_GET ['orderno']; - if (! empty ( $_GET ['jinzhue'] )) { - sleep ( 3 ); - $orderno = $_GET ['jinzhue']; - } - $pay_where = substr ( $orderno, 0, 2 ); - $Scheme = file_get_contents ( "./Application/Sdk/Scheme/" . $_GET ['game_id'] . ".txt" ); - $map ['pay_order_number'] = $orderno; - switch ($pay_where) { - case 'SP' : - $result = M ( 'Spend', 'tab_' )->field ( "pay_status" )->where ( $map )->find (); - break; - case 'PF' : - $result = M ( 'deposit', 'tab_' )->field ( 'pay_status' )->where ( $map )->find (); - break; + // $orderno = $_GET ['orderno'] == "" ? $_GET ['out_trade_no'] : $_GET ['orderno']; + // if (! empty ( $_GET ['jinzhue'] )) { + // sleep ( 3 ); + // $orderno = $_GET ['jinzhue']; + // } + // $pay_where = substr ( $orderno, 0, 2 ); + // $Scheme = file_get_contents ( "./Application/Sdk/Scheme/" . $_GET ['game_id'] . ".txt" ); + // $map ['pay_order_number'] = $orderno; + // switch ($pay_where) { + // case 'SP' : + // $result = M ( 'Spend', 'tab_' )->field ( "pay_status" )->where ( $map )->find (); + // break; + // case 'PF' : + // $result = M ( 'deposit', 'tab_' )->field ( 'pay_status' )->where ( $map )->find (); + // break; - case 'TB' : - $result = M ( 'balance', 'tab_' )->field ( 'pay_status' )->where ( $map )->find (); - break; + // case 'TB' : + // $result = M ( 'balance', 'tab_' )->field ( 'pay_status' )->where ( $map )->find (); + // break; - case 'BR' : - $result = M ( 'bind_recharge', 'tab_' )->field ( 'pay_status' )->where ( $map )->find (); - break; - } - $this->assign ( 'Scheme', $Scheme ); - $this->assign ( 'paystatus', $result ['pay_status'] ); + // case 'BR' : + // $result = M ( 'bind_recharge', 'tab_' )->field ( 'pay_status' )->where ( $map )->find (); + // break; + // } + // $this->assign ( 'Scheme', $Scheme ); + // $this->assign ( 'paystatus', $result ['pay_status'] ); $this->display (); } public function pay_success2() { diff --git a/Application/Sdk/View/default/Spend/pay_success.html b/Application/Sdk/View/default/Spend/pay_success.html index ff5dcfbab..22c772766 100644 --- a/Application/Sdk/View/default/Spend/pay_success.html +++ b/Application/Sdk/View/default/Spend/pay_success.html @@ -137,27 +137,19 @@ $("#back_success").click(function() { }catch(err){ } */ - var Scheme=$('.Scheme').val(); - var orderno=$('.orderno').val(); - var u = navigator.userAgent; - var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 - if(isAndroid){ - window.mengchuang.getPayResult('succeed'); - }else{ - - - window.location.href = '/mobile.php?s=/User/index.html'; - - - - // window.location.href = '/mobile.php?s=/User/index.html'; - - - } + // var Scheme=$('.Scheme').val(); + // var orderno=$('.orderno').val(); + // var u = navigator.userAgent; + // var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 + // if(isAndroid){ + // window.mengchuang.getPayResult('succeed'); + // }else{ + window.location.href = '/mobile.php?s=/User/index.html'; + // } }); $("#back_error").click(function() { - + window.location.href = '/mobile.php?s=/User/index.html'; /* var orderno=$('.orderno').val(); var u = navigator.userAgent; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 @@ -170,22 +162,22 @@ $("#back_error").click(function() { }catch(err){ } */ - var Scheme=$('.Scheme').val(); - var orderno=$('.orderno').val(); - var u = navigator.userAgent; - var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 - if(isAndroid){ - window.mengchuang.getPayResult('fail'); - }else{ - - if (!Scheme) - ; - else - window.location.href = Scheme+"://0&back"; - - window. location.href = "mengchuang://showWapPayResult_btnType_?0&back"; - - } + // var Scheme=$('.Scheme').val(); + // var orderno=$('.orderno').val(); + // var u = navigator.userAgent; + // var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 + // if(isAndroid){ + // window.mengchuang.getPayResult('fail'); + // }else{ + // + // if (!Scheme) + // ; + // else + // window.location.href = Scheme+"://0&back"; + // + // window. location.href = "mengchuang://showWapPayResult_btnType_?0&back"; + // + // } });