field('id, uid, employee_id, state,org_id, addtime,phone') ->where($condition)->page($page, $limit)->order($order)->select(); foreach($data as &$item){ if($item['phone']){ $item['phone'] = substr_replace($item['phone'],'******',3,6); } } return $data; } public static function count($condition = []) { return Model::where($condition)->count(); } }