diff --git a/Application/Admin/Controller/FinancePromoteController.class.php b/Application/Admin/Controller/FinancePromoteController.class.php index f15aef2c0..9e4cf147a 100644 --- a/Application/Admin/Controller/FinancePromoteController.class.php +++ b/Application/Admin/Controller/FinancePromoteController.class.php @@ -241,6 +241,7 @@ class FinancePromoteController extends AdminController foreach($senddata as $k=>$v){ if(empty($v['company_name'])) $v['company_name']= "万盟天下科技"; + if(empty($v['promote_account'])) $v['promote_account']= "官方渠道"; if(!array_key_exists('cash_count',$v)) $v['cash_count']=0; if(!array_key_exists('balance_coin_count',$v)) $v['balance_coin_count']=0; if(!array_key_exists('bind_coin_count',$v)) $v['bind_coin_count']=0; diff --git a/Application/Admin/Controller/PayChannelController.class.php b/Application/Admin/Controller/PayChannelController.class.php index 6a87672a9..1675b0c4f 100644 --- a/Application/Admin/Controller/PayChannelController.class.php +++ b/Application/Admin/Controller/PayChannelController.class.php @@ -810,7 +810,8 @@ class PayChannelController extends ThinkController if (!empty($_REQUEST['user_account'])) { $map['user_account'] = array('like',"{$_REQUEST['user_account']}%"); } - + $map['pay_status'] = $coinMap['tab_deposit.pay_status'] = 1; + $map['pay_way'] = array('egt',1); $model = $_REQUEST['model']?$_REQUEST['model']:'spend'; $data = []; @@ -833,6 +834,12 @@ class PayChannelController extends ThinkController } $coinMap = $map; + $coinMap['tab_deposit.pay_status'] = 1; + $coinMap['tab_deposit.pay_way'] = $map['pay_way']; + + unset($coinMap['pay_status']); + unset($coinMap['pay_way']); + if ($map['pay_time']) { $coinMap['tab_deposit.create_time'] = $map['pay_time']; unset($coinMap['pay_time']); @@ -924,6 +931,9 @@ class PayChannelController extends ThinkController $map['game_id'] = $_REQUEST['game_id']; } + $map['tab_game_supersign.pay_status'] = $map['pay_status']; + unset($map['pay_status']); + $data = M('game_supersign','tab_') ->field("order_id as pay_order_number,trade_id as order_number,account as user_account,pay_time,game_name,pay_price as cost,pay_price as pay_amount,pay_way as pay_type,pay_way") ->join('inner join tab_test_white_list on tab_game_supersign.user_id=tab_test_white_list.user_id') @@ -959,7 +969,7 @@ class PayChannelController extends ThinkController ->order('tab_game_supersign.id DESC') ->count(); - $field = "pay_price as cost,sum(pay_price) as pay_amount,pay_way"; + $field = "sum(pay_price) as cost,sum(pay_price) as pay_amount,pay_way"; } elseif($model == 'deposit') { $map['pay_source'] = 0; if ($map['pay_time']) { @@ -1000,7 +1010,7 @@ class PayChannelController extends ThinkController ->order('tab_deposit.id DESC') ->count(); - $field = "pay_amount as cost,sum(pay_amount) as pay_amount,pay_way"; + $field = "sum(pay_amount) as cost,sum(pay_amount) as pay_amount,pay_way"; } $sumAllData = M($model,'tab_') @@ -1099,6 +1109,8 @@ class PayChannelController extends ThinkController $map['user_account'] = array('like',"{$_REQUEST['user_account']}%"); } + $map['pay_status'] = $coinMap['tab_deposit.pay_status'] = 1; + $map['pay_way'] = array('egt',1); $model = $_REQUEST['model']?$_REQUEST['model']:'spend'; $data = []; @@ -1141,6 +1153,13 @@ class PayChannelController extends ThinkController $coinMap = $map; + + $coinMap['tab_deposit.pay_status'] = 1; + $coinMap['tab_deposit.pay_way'] = $map['pay_way']; + + unset($coinMap['pay_status']); + unset($coinMap['pay_way']); + if($map['pay_time']) { $coinMap['tab_deposit.create_time'] = $map['pay_time']; unset($coinMap['pay_time']); @@ -1254,6 +1273,9 @@ class PayChannelController extends ThinkController $map['game_id'] = $_REQUEST['game_id']; } + $map['tab_game_supersign.pay_status'] = $map['pay_status']; + unset($map['pay_status']); + $accessNum = M('game_supersign','tab_') ->field("order_id as pay_order_number,trade_id as order_number,account as user_account,pay_time,game_name,pay_price as cost,pay_price as pay_amount,pay_way as pay_type,pay_way") ->join('inner join tab_test_white_list on tab_game_supersign.user_id=tab_test_white_list.user_id') diff --git a/Application/Admin/View/PayChannel/index.html b/Application/Admin/View/PayChannel/index.html index 72c615be5..c87a2767e 100644 --- a/Application/Admin/View/PayChannel/index.html +++ b/Application/Admin/View/PayChannel/index.html @@ -169,10 +169,10 @@ {$data['pay_amount']}