|
|
@ -48,7 +48,7 @@ class ActionController extends AdminController {
|
|
|
|
public function edit($id = 0){
|
|
|
|
public function edit($id = 0){
|
|
|
|
empty($id) && $this->error('参数错误!');
|
|
|
|
empty($id) && $this->error('参数错误!');
|
|
|
|
|
|
|
|
|
|
|
|
$info = M('ActionLog')->field(true)->find($id);
|
|
|
|
$info = SM('ActionLog')->field(true)->find($id);
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign('info', $info);
|
|
|
|
$this->assign('info', $info);
|
|
|
|
$this->meta_title = '查看行为日志';
|
|
|
|
$this->meta_title = '查看行为日志';
|
|
|
@ -73,7 +73,7 @@ class ActionController extends AdminController {
|
|
|
|
}elseif (is_numeric($ids)){
|
|
|
|
}elseif (is_numeric($ids)){
|
|
|
|
$map['id'] = $ids;
|
|
|
|
$map['id'] = $ids;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$res = M('ActionLog')->where($map)->delete();
|
|
|
|
$res = SM('ActionLog')->where($map)->delete();
|
|
|
|
\Think\Log::actionLog("Action/remove",'Action',1);
|
|
|
|
\Think\Log::actionLog("Action/remove",'Action',1);
|
|
|
|
if($res !== false){
|
|
|
|
if($res !== false){
|
|
|
|
$this->success('删除成功!');
|
|
|
|
$this->success('删除成功!');
|
|
|
@ -86,7 +86,7 @@ class ActionController extends AdminController {
|
|
|
|
* 清空日志
|
|
|
|
* 清空日志
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function clear(){
|
|
|
|
public function clear(){
|
|
|
|
$res = M('ActionLog')->where('1=1')->delete();
|
|
|
|
$res = SM('ActionLog')->where('1=1')->delete();
|
|
|
|
\Think\Log::actionLog("Action/clear",'Action',1);
|
|
|
|
\Think\Log::actionLog("Action/clear",'Action',1);
|
|
|
|
if($res !== false){
|
|
|
|
if($res !== false){
|
|
|
|
$this->success('日志清空成功!');
|
|
|
|
$this->success('日志清空成功!');
|
|
|
|