/** * * 校验dependent * @param array $dependent */ private function _check_dependent_apply($dependent, $eid, $uid, $apply_type) { if (count($dependent) > 0) { foreach ($dependent as $v) { if ($this->model->getApplyType(array('eid' => $eid, 'pid' => $uid, 'name' => $v['name'], 'apply_type' => $apply_type))) { return true; } } } return false; }