From 71b2287647a3492391b80885aa6e154d473142cd Mon Sep 17 00:00:00 2001 From: zyx Date: Mon, 4 Nov 2019 11:05:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B5=84=E6=BA=90=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=AE=A1=E7=90=86=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/PromoteController.class.php | 6 +++--- .../Home/Controller/TestResourceController.class.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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';