diff --git a/Application/Sdk/Controller/SpendController.class.php b/Application/Sdk/Controller/SpendController.class.php index 0f6515951..3ab04ae10 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() {