public function index() {
if ($this->member['groupid']) {
$where = " uid in (select uid from ".\Phpcmf\Service::M()->dbprefix('member_group_index')." where gid in(".implode(",", $this->member['groupid'])."))";
if ($this->init['where_list']) {
$this->init['where_list'].= ' AND '.$where;
// 考虑到父类也许有可能会自带条件,防止被覆盖默认条件,所以追加一个 AND
} else {
$this->init['where_list'] = $where;
}
}
$this->_Admin_List();
}
public function index() { if ($this->member['groupid']) { $where = " uid in (select uid from ".\Phpcmf\Service::M()->dbprefix('member_group_index')." where gid in(".implode(",", $this->member['groupid'])."))"; if ($this->init['where_list']) { $this->init['where_list'].= ' AND '.$where; // 考虑到父类也许有可能会自带条件,防止被覆盖默认条件,所以追加一个 AND } else { $this->init['where_list'] = $where; } } $this->_Admin_List(); }