From b7d0012d6eb5cfee7eb23f3428efd4872598fe0e Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 28 Feb 2020 15:09:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F=E5=88=97=E8=A1=A8-=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/ExportController.class.php | 1 + .../Admin/Controller/GameController.class.php | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index 1877aee7c..194068888 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -5537,6 +5537,7 @@ class ExportController extends Controller } + $this->exportAddOperationLog('Game/lists','游戏-游戏管理-游戏列表-导出'); $this->exportExcel($xlsName, $xlsCell, $xlsData); diff --git a/Application/Admin/Controller/GameController.class.php b/Application/Admin/Controller/GameController.class.php index 1ff669b04..70008a091 100644 --- a/Application/Admin/Controller/GameController.class.php +++ b/Application/Admin/Controller/GameController.class.php @@ -225,6 +225,12 @@ class GameController extends ThinkController $this->error($game->getError()); } else { \Think\Log::actionLog('Game/add', 'Game', 1); + //操作日志 + addOperationLog(array( + "op_type"=>0, + "key"=>$_POST['game_name'], + "url"=>U("Game/lists",array("game_name"=>$_POST['game_name'])) + )); $this->success($res['id'] ? '更新成功' : '新增成功', U('lists')); } } else { @@ -282,6 +288,11 @@ class GameController extends ThinkController if (!$res) { $this->error($game->getError()); } else { + addOperationLog(array( + "op_type"=>0, + "key"=>$_POST['game_name'], + "url"=>U("Game/lists",array("game_name"=>$_POST['game_name'])) + )); $this->success($res['id'] ? '更新成功' : '新增成功', U('lists')); } } else { @@ -428,6 +439,11 @@ class GameController extends ThinkController $this->error($game->getError()); } else { \Think\Log::actionLog('Game/edit', 'Game', 1); + addOperationLog(array( + "op_type"=>1, + "key"=>$sibling ['game_name'], + "url"=>U("Game/lists",array("game_name"=>$sibling ['game_name'])) + )); $this->success($res['id'] ? '更新成功' : '新增成功', U('lists', array('type' => I('post.type'), 'p' => I('request.p')))); } @@ -563,6 +579,12 @@ class GameController extends ThinkController unlink($file_url); M('Apply', 'tab_')->where(array('game_id' => $id))->delete(); } + //操作日志 + addOperationLog(array( + "op_type"=>2, + "key"=>$gda['game_name'], + "url"=>U("Game/lists") + )); }