游戏列表-操作日志

master
chenzhi 5 years ago
parent f9be1c2f48
commit b7d0012d6e

@ -5537,6 +5537,7 @@ class ExportController extends Controller
}
$this->exportAddOperationLog('Game/lists','游戏-游戏管理-游戏列表-导出');
$this->exportExcel($xlsName, $xlsCell, $xlsData);

@ -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")
));
}

Loading…
Cancel
Save