order('sort DESC,add_time DESC')->select(); count($data) && $data = $data->toArray(); foreach ($data as &$item) { $item['sign_time'] = date('Y-m-d', $item['sign_time']); } $count = self::count(); return compact('data', 'count'); } }