where("score_rule=''")->getField('id', true); // $this->_delete_validate[] = array($ids, 'id', parent::ALLOW_VALUE_VALIDATE, '只能删除没有挂载规则的钩子'); } public function getHooks($map){ return $this->where($map)->select(); } public function getActiveHooks(){ $map = array('status' => DBCont::NORMAL_STATUS); return $this->getHooks($map); } }