diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index aae776029..0485c58ff 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -7427,7 +7427,7 @@ class ExportController extends Controller 'inside_cash_count'=>$sumInside, 'all_cash_count'=>$sumAll]]; $xlsData = array_merge($xlsData,$sumData); - + $this->exportAddOperationLog("Finance/gameStatistics","充值-财务管理-游戏统计-导出"); $this->exportExcel($xlsName, $xlsCell, $xlsData); } @@ -7511,6 +7511,7 @@ class ExportController extends Controller 'pay_time'=>'平台币:' . $sumBalance, 'user_account'=>'绑币:' . $sumInside]]; $xlsData = array_merge($xlsData,$sumData); + $this->exportAddOperationLog("Finance/gameStatisticsDetail","充值-财务管理-游戏统计-查看-导出"); $this->exportExcel($xlsName, $xlsCell, $xlsData); } @@ -7592,12 +7593,14 @@ class ExportController extends Controller $join = false; if ($map['pay_way'] ==-1) {//绑定币 $xlsCell[] = array('bind_balance','绑定币余额'); - $xlsName = $game_name . '内充支出明细'; + $title = '内充支出明细'; + $xlsName = $game_name . $title; $field2 = $field . ',bind_balance'; $join = 'left join tab_user_play as p on p.user_id = tab_spend.user_id and tab_spend.game_id=p.game_id'; } elseif ($map['pay_way'] ==0) {//平台币 $xlsCell[] = array('balance','平台币余额'); - $xlsName = $game_name . '平台币直充明细'; + $title = '平台币直充明细'; + $xlsName = $game_name . $title; $field2 = $field . ',balance'; $join = 'left join tab_user as u on u.id = tab_spend.user_id'; } @@ -7615,6 +7618,7 @@ class ExportController extends Controller 'cost'=> $total_cost, 'pay_amount'=> $total_pay_amount]]; $xlsData = array_merge($xlsData,$sumData); + $this->exportAddOperationLog("Finance/coinDetail","充值-财务管理-游戏统计-".$title."-导出"); $this->exportExcel($xlsName, $xlsCell, $xlsData); } diff --git a/Application/Admin/Controller/FinancePromoteController.class.php b/Application/Admin/Controller/FinancePromoteController.class.php index c910dc112..706989d0c 100644 --- a/Application/Admin/Controller/FinancePromoteController.class.php +++ b/Application/Admin/Controller/FinancePromoteController.class.php @@ -128,6 +128,11 @@ class FinancePromoteController extends AdminController } $data = my_sort($data, $data_order_type, (int)$data_order); if(isset($_REQUEST['export'])){ + //操作日志 + $GetData = $_GET; + unset($GetData['export']); + addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U(CONTROLLER_NAME.'/'.ACTION_NAME,$GetData),'menu'=>"充值-财务管理-公会统计-导出"]); + data2csv($data,'公会统计',array( "company_name"=>"推广公司", "promote_account"=>"会长渠道", @@ -322,6 +327,11 @@ class FinancePromoteController extends AdminController $data = my_sort($data, $data_order_type, (int)$data_order); if(isset($_REQUEST['export'])){ + + $GetData = $_GET; + unset($GetData['export']); + addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U(CONTROLLER_NAME.'/'.ACTION_NAME,$GetData),'menu'=>"充值-财务管理-公会统计-渠道查看-导出"]); + data2csv($data,'渠道统计',array( "company_name"=>"推广公司", "promote_account"=>"推广员账号", @@ -431,6 +441,11 @@ class FinancePromoteController extends AdminController if(!$value['game_name']) $value['game_name'] = "无"; } if (isset($_REQUEST['export'])) { + + $GetData = $_GET; + unset($GetData['export']); + addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U(CONTROLLER_NAME.'/'.ACTION_NAME,$GetData),'menu'=>"充值-财务管理-公会统计-游戏统计-导出"]); + data2csv($data,$title, array( "company_name"=>"推广公司", "account"=>"会长账号", @@ -541,6 +556,11 @@ class FinancePromoteController extends AdminController $data[$key]['pay_way'] = getPayType($value['pay_way']); } if (isset($_REQUEST['export'])) { + + $GetData = $_GET; + unset($GetData['export']); + addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U(CONTROLLER_NAME.'/'.ACTION_NAME,$GetData),'menu'=>"充值-财务管理-公会统计-订单查看-导出"]); + data2csv($data,$title, array( "pay_order_number"=>"支付订单号", "pay_time"=>"充值时间", @@ -698,6 +718,8 @@ class FinancePromoteController extends AdminController } if (isset($_REQUEST['export'])) { + + $field = array( "pay_order_number"=>"支付订单号", "pay_time"=>"充值时间", @@ -716,6 +738,11 @@ class FinancePromoteController extends AdminController $field["balance"] = "平台币余额"; $title = "平台币直充明细"; } + + $GetData = $_GET; + unset($GetData['export']); + addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U(CONTROLLER_NAME.'/'.ACTION_NAME,$GetData),'menu'=>"充值-财务管理-公会统计-".$title."-导出"]); + data2csv($data,$title,$field); } $count = D("spend")->getSpendData($map,$field,$group,$order); @@ -864,6 +891,11 @@ class FinancePromoteController extends AdminController "mark"=>"交易说明", "create_time"=>"交易时间" ); + + $GetData = $_GET; + unset($GetData['export']); + addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U(CONTROLLER_NAME.'/'.ACTION_NAME,$GetData),'menu'=>"充值-财务管理-公会统计-"."平台币内充明细"."-导出"]); + data2csv($senddata,"平台币内充明细",$field); } diff --git a/Application/Admin/Controller/PayChannelController.class.php b/Application/Admin/Controller/PayChannelController.class.php index b9939f2aa..9035e9e2b 100644 --- a/Application/Admin/Controller/PayChannelController.class.php +++ b/Application/Admin/Controller/PayChannelController.class.php @@ -300,6 +300,10 @@ class PayChannelController extends ThinkController unset($offcialData); unset($spreadData); } + //操作日志 + $GetData = $_GET; + unset($GetData['export']); + addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U(CONTROLLER_NAME.'/'.ACTION_NAME,$GetData),'menu'=>"充值-财务管理-支付渠道查看-导出"]); db2csv(array_merge(array_merge(array_merge(array_merge( array_merge(array_merge(