From 70aab2f137d72b01893010c4ac389626a6e8c84f Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 9 Dec 2019 17:15:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E6=9F=A5=E8=AF=A2=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=88=9B=E8=A7=92=E6=97=B6=E9=97=B4=E5=8C=BA=E9=97=B4?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/UserController.class.php | 9 +++++ Application/Admin/View/User/rolelist.html | 40 ++++++++++++++++++- 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/UserController.class.php b/Application/Admin/Controller/UserController.class.php index 8c95a0240..33701ba89 100644 --- a/Application/Admin/Controller/UserController.class.php +++ b/Application/Admin/Controller/UserController.class.php @@ -646,6 +646,15 @@ class UserController extends AdminController $map['sdk_version'] = trim($_REQUEST['game_type']); unset($_REQUEST['game_type']); } + + if (isset($_REQUEST['time_start']) && isset($_REQUEST['time_end'])) { + $map['create_time'] = ['between', [strtotime(I('time_start')), strtotime(I('time_end')) + 86399]]; + } elseif (isset($_REQUEST['time_start'])) { + $map['create_time'] = ['GT', strtotime(I('time_start'))]; + } elseif (isset($_REQUEST['time_end'])) { + $map['create_time'] = ['LT', strtotime(I('time_end')) + 86399]; + } + empty(I('user_account')) || $map['user_account'] = ['like', "%" . I('user_account') . "%"]; $list = $this->lists(M('user_play_info', 'tab_'), $map, 'play_time desc'); $this->assign('list', $list); diff --git a/Application/Admin/View/User/rolelist.html b/Application/Admin/View/User/rolelist.html index e565a8218..861926e81 100644 --- a/Application/Admin/View/User/rolelist.html +++ b/Application/Admin/View/User/rolelist.html @@ -4,6 +4,7 @@ +