日志bug修改
This commit is contained in:
parent
0d114c4753
commit
bce0a0c8ec
@ -31,14 +31,15 @@ class User extends BaseController
|
||||
|
||||
if ($start_time > 0 && $end_time > 0) {
|
||||
if ($start_time === $end_time) {
|
||||
$where['register_time'] = array('eq', $start_time);
|
||||
$where[] = ['register_time','=',$start_time];
|
||||
} else {
|
||||
$where['register_time'] = array(array('egt', $start_time), array('elt', $end_time), 'and');
|
||||
$where[] = ['register_time','>=',$start_time];
|
||||
$where[] = ['register_time','<=',$end_time];
|
||||
}
|
||||
} elseif ($start_time > 0 && $end_time == 0) {
|
||||
$where['register_time'] = array('egt', $start_time);
|
||||
$where[] = ['register_time','>=',$start_time];
|
||||
} elseif ($start_time == 0 && $end_time > 0) {
|
||||
$where['register_time'] = array('elt', $end_time);
|
||||
$where[] = ['register_time','<=',$end_time];
|
||||
}
|
||||
|
||||
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user