测试资源日志管理修改

master
zyx 5 years ago
parent b6080180ab
commit 71b2287647

@ -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();

@ -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';

Loading…
Cancel
Save