|
|
@ -81,32 +81,32 @@ class SpendController extends Controller {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public function pay_success() {
|
|
|
|
public function pay_success() {
|
|
|
|
|
|
|
|
|
|
|
|
// $orderno = $_GET ['orderno'] == "" ? $_GET ['out_trade_no'] : $_GET ['orderno'];
|
|
|
|
$orderno = $_GET ['orderno'] == "" ? $_GET ['out_trade_no'] : $_GET ['orderno'];
|
|
|
|
// if (! empty ( $_GET ['jinzhue'] )) {
|
|
|
|
if (! empty ( $_GET ['jinzhue'] )) {
|
|
|
|
// sleep ( 3 );
|
|
|
|
sleep ( 3 );
|
|
|
|
// $orderno = $_GET ['jinzhue'];
|
|
|
|
$orderno = $_GET ['jinzhue'];
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// $pay_where = substr ( $orderno, 0, 2 );
|
|
|
|
$pay_where = substr ( $orderno, 0, 2 );
|
|
|
|
// $Scheme = file_get_contents ( "./Application/Sdk/Scheme/" . $_GET ['game_id'] . ".txt" );
|
|
|
|
$Scheme = file_get_contents ( "./Application/Sdk/Scheme/" . $_GET ['game_id'] . ".txt" );
|
|
|
|
// $map ['pay_order_number'] = $orderno;
|
|
|
|
$map ['pay_order_number'] = $orderno;
|
|
|
|
// switch ($pay_where) {
|
|
|
|
switch ($pay_where) {
|
|
|
|
// case 'SP' :
|
|
|
|
case 'SP' :
|
|
|
|
// $result = M ( 'Spend', 'tab_' )->field ( "pay_status" )->where ( $map )->find ();
|
|
|
|
$result = M ( 'Spend', 'tab_' )->field ( "pay_status" )->where ( $map )->find ();
|
|
|
|
// break;
|
|
|
|
break;
|
|
|
|
// case 'PF' :
|
|
|
|
case 'PF' :
|
|
|
|
// $result = M ( 'deposit', 'tab_' )->field ( 'pay_status' )->where ( $map )->find ();
|
|
|
|
$result = M ( 'deposit', 'tab_' )->field ( 'pay_status' )->where ( $map )->find ();
|
|
|
|
// break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
// case 'TB' :
|
|
|
|
case 'TB' :
|
|
|
|
// $result = M ( 'balance', 'tab_' )->field ( 'pay_status' )->where ( $map )->find ();
|
|
|
|
$result = M ( 'balance', 'tab_' )->field ( 'pay_status' )->where ( $map )->find ();
|
|
|
|
// break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
// case 'BR' :
|
|
|
|
case 'BR' :
|
|
|
|
// $result = M ( 'bind_recharge', 'tab_' )->field ( 'pay_status' )->where ( $map )->find ();
|
|
|
|
$result = M ( 'bind_recharge', 'tab_' )->field ( 'pay_status' )->where ( $map )->find ();
|
|
|
|
// break;
|
|
|
|
break;
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// $this->assign ( 'Scheme', $Scheme );
|
|
|
|
$this->assign ( 'Scheme', $Scheme );
|
|
|
|
// $this->assign ( 'paystatus', $result ['pay_status'] );
|
|
|
|
$this->assign ( 'paystatus', $result ['pay_status'] );
|
|
|
|
$this->display ();
|
|
|
|
$this->display ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public function pay_success2() {
|
|
|
|
public function pay_success2() {
|
|
|
|