'0', 'menuid' => '0', 'type' => '1', 'title' => '', 'sex' => '0', 'group_id' => '-1', 'client_platform_type' => '0', 'area' => '', 'data' => '', 'status' => '0', 'createtime' => '0', 'isdeleted' => '0', ); public function searchWithTypeAndUniacid($type = '', $uniacid = 0) { if (!empty($type)) { $this->where('type', $type); } if ($uniacid > 0) { $this->where('uniacid', intval($uniacid)); } return $this; } public function getByType($type = '') { global $_W; return $this->searchWithTypeAndUniacid($type, $_W['uniacid'])->get(); } public function getAllByType($type = '') { global $_W; return $this->searchWithTypeAndUniacid($type, $_W['uniacid'])->getall('id'); } }