=', strtotime($get['start_time'])]; } if (isset($get['end_time']) && !empty($get['end_time'])) { $where[] = ['create_time', '<=', strtotime($get['end_time'])]; } $lists = SystemLog::where($where) ->page($get['page'], $get['limit']) ->order(['id' => 'desc']) ->select() ->toArray(); foreach ($lists as $k => $v) { // $lists[$k]['create_time_str'] = date('Y-m-d H:i:s', $v['create_time']); $lists[$k]['param'] = str_replace([" ", " ", "\t", "\n", "\r"], '', $v['param']); } $count = SystemLog::where($where)->count(); return ['lists' => $lists, 'count' => $count]; } }