diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php index c2f0225ff..e6c175478 100644 --- a/Application/Home/Controller/PromoteController.class.php +++ b/Application/Home/Controller/PromoteController.class.php @@ -64,11 +64,11 @@ class PromoteController extends BaseController $gg_list = M("document", "sys_")->limit('0,5')->where("category_id=56 and status=1")->order("update_time desc")->select(); //游戏公告 $zx_list = M("document", "sys_")->limit('0,5')->where("category_id=51 and status=1")->order("update_time desc")->select(); //游戏咨询 + $promote_id = get_pid(); $field = 'id,game_name,server_name,user_account,nickname,promote_account,detail,create_time as update_time'; - $rz_list = M("protect_log","tab_")->field($field)->limit('0,5')->order("create_time desc")->select(); //日志管理 + $rz_list = M("protect_log","tab_")->field($field)->where("promote_id = {$promote_id}")->limit('0,5')->order("create_time desc")->select(); //日志管理 - $promote_id = get_pid(); - $logCount = M('protect_log','tab_')->count(); + $logCount = M('protect_log','tab_')->where("promote_id = {$promote_id}")->count(); $readLogCount = M('protect_log_read','tab_')->where("promote_id = {$promote_id}")->count(); $gg_data = M("document", "sys_")->where("category_id=56 and status=1")->order("update_time desc")->select(); diff --git a/Application/Home/Controller/TestResourceController.class.php b/Application/Home/Controller/TestResourceController.class.php index 9a738d354..b148650f7 100644 --- a/Application/Home/Controller/TestResourceController.class.php +++ b/Application/Home/Controller/TestResourceController.class.php @@ -186,7 +186,7 @@ class TestResourceController extends BaseController if(!empty(I('types'))){ $map['type']=I('types'); } -// $map['promote_id']=I('promote_id'); + $map['promote_id']=$promote_id; $field = 'id,game_name,server_name,user_account,nickname,promote_account,detail'; $order = 'id DESC';