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