diff --git a/Application/Admin/Controller/GameRebateController.class.php b/Application/Admin/Controller/GameRebateController.class.php index cd75e6b33..5be7aab0d 100644 --- a/Application/Admin/Controller/GameRebateController.class.php +++ b/Application/Admin/Controller/GameRebateController.class.php @@ -100,7 +100,15 @@ class GameRebateController extends ThinkController 'B' => '月卡福利发放', 'C' => '累充福利发放', ]; + + $pageNames = [ + 'A' => 'single', + 'B' => 'daily', + 'C' => 'accumulative', + ]; + $pageTitle = $pageTitles[$awardType]; + $pageName = $pageNames[$awardType]; if (count($records) > 0) { foreach ($records as $key => $record) { $records[$key]['review_status_text'] = $reviewStatusList[$record['review_status']]; @@ -127,7 +135,7 @@ class GameRebateController extends ThinkController 'reviewer_username' => '审核人', ]; - addOperationLog(['op_type'=>3,'key'=>getNowDate(),'op_name'=>'导出' . $pageTitle . '记录','url'=>U('GameRebate/records'),'menu'=>'推广员-发放福利管理-' . '导出' . $pageTitle . '记录']); + addOperationLog(['op_type'=>3,'key'=>getNowDate(),'op_name'=>'导出' . $pageTitle . '记录','url'=>U('GameRebate/' . $pageName),'menu'=>'推广员-发放福利管理-' . '导出' . $pageTitle . '记录']); data2csv($records, $pageTitle, $field); exit; @@ -144,6 +152,7 @@ class GameRebateController extends ThinkController $gameRepository = new GameRepository(); $this->assign('pageTitle', $pageTitle); + $this->assign('pageName', $pageName); $this->assign('awardType', $awardType); $this->assign('servers', $gameRepository->getServersByBaseGameId($baseGameId)); $this->assign('admins', $admins); diff --git a/Application/Admin/View/GameRebate/records.html b/Application/Admin/View/GameRebate/records.html index 90973b418..643f792bf 100644 --- a/Application/Admin/View/GameRebate/records.html +++ b/Application/Admin/View/GameRebate/records.html @@ -72,13 +72,7 @@
@@ -275,7 +269,7 @@