diff --git a/Application/Admin/Controller/TestWhiteListController.class.php b/Application/Admin/Controller/TestWhiteListController.class.php index 98566be9a..51fb4c504 100644 --- a/Application/Admin/Controller/TestWhiteListController.class.php +++ b/Application/Admin/Controller/TestWhiteListController.class.php @@ -117,6 +117,13 @@ class TestWhiteListController extends ThinkController // echo M('test_white_list','tab_')->_sql();die(); if($whiteList) { + // + addOperationLog(array( + "op_type"=>1, + "key"=>$data['account'], + "menu"=>"用户-玩家组-测试白名单-锁定/开启", + "url"=>U("TestWhiteList/lists",array('account'=>$data['account'])) + )); $this->ajaxReturn(['status'=>1,'msg'=>"修改白名单成功"]); } else { $this->ajaxReturn(['status'=>0,'msg'=>"修改白名单成功"]); @@ -162,7 +169,15 @@ class TestWhiteListController extends ThinkController $whiteList = M('test_white_list','tab_')->add($data); if($whiteList) { + //操作日志 + addOperationLog(array( + "op_type"=>0, + "key"=>$data['account'], + "menu"=>"用户-玩家组-测试白名单-添加测试账号", + "url"=>U("TestWhiteList/lists",array('account'=>$data['account'])) + )); $this->success('添加白名单成功',U('TestWhiteList/lists')); + } else { $this->error('添加白名单失败'); } @@ -214,6 +229,12 @@ class TestWhiteListController extends ThinkController $del = M('test_white_list','tab_')->where(['id'=>$userId])->delete(); if ($del) { + addOperationLog(array( + "op_type"=>2, + "key"=>$userWhite['account'], + "menu"=>"用户-玩家组-测试白名单-删除", + "url"=>U("TestWhiteList/lists") + )); $this->ajaxReturn(['status'=>0,'msg'=>"删除成功"]); } else { $this->ajaxReturn(['status'=>0,'msg'=>"删除失败"]);