行为日志时间筛选修正

master
zhengyongxing 5 years ago
parent 10f2f4b210
commit b864934969

@ -39,12 +39,12 @@ class UserActionLogController extends AdminController
}
if (!$_REQUEST['time_start']&&$_REQUEST['time_end']) {
$map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])];
$map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])+86399];
}
if ($_REQUEST['time_start']&&$_REQUEST['time_end']) {
$map['create_time'] = ['egt',strtotime($_REQUEST['time_start'])];
$map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])];
$map['create_time'] = ['between',[strtotime($_REQUEST['time_start']),strtotime($_REQUEST['time_end'])+86399]];
// $map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])];
}
if ($_REQUEST['username']) {
@ -123,12 +123,13 @@ class UserActionLogController extends AdminController
}
if (!$_REQUEST['time_start']&&$_REQUEST['time_end']) {
$map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])];
$map['create_time'] = ['elt',strtotime($_REQUEST['time_end']+86399)];
}
if ($_REQUEST['time_start']&&$_REQUEST['time_end']) {
$map['create_time'] = ['egt',strtotime($_REQUEST['time_start'])];
$map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])];
// $map['create_time'] = ['egt',strtotime($_REQUEST['time_start'])];
// $map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])];
$map['create_time'] = ['between',[strtotime($_REQUEST['time_start']),strtotime($_REQUEST['time_end'])+86399]];
}
if ($_REQUEST['username']) {
@ -227,12 +228,13 @@ class UserActionLogController extends AdminController
}
if (!$_REQUEST['time_start']&&$_REQUEST['time_end']) {
$map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])];
$map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])+86399];
}
if ($_REQUEST['time_start']&&$_REQUEST['time_end']) {
$map['create_time'] = ['egt',strtotime($_REQUEST['time_start'])];
$map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])];
// $map['create_time'] = ['egt',strtotime($_REQUEST['time_start'])];
// $map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])];
$map['create_time'] = ['between',[strtotime($_REQUEST['time_start']),strtotime($_REQUEST['time_end'])+86399]];
}
if ($_REQUEST['adminname']) {
@ -295,12 +297,13 @@ class UserActionLogController extends AdminController
}
if (!$_REQUEST['time_start']&&$_REQUEST['time_end']) {
$map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])];
$map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])+86399];
}
if ($_REQUEST['time_start']&&$_REQUEST['time_end']) {
$map['create_time'] = ['egt',strtotime($_REQUEST['time_start'])];
$map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])];
// $map['create_time'] = ['egt',strtotime($_REQUEST['time_start'])];
// $map['create_time'] = ['elt',strtotime($_REQUEST['time_end'])];
$map['create_time'] = ['between',[strtotime($_REQUEST['time_start']),strtotime($_REQUEST['time_end'])+86399]];
}
if ($_REQUEST['adminname']) {

Loading…
Cancel
Save