檢查使用者是否擁有這個點數

@return mixed
770972
protected function pointNotIsset()
    {
        $point = Point::where('user_id' ,$this->id)
                    ->where('rule_id' , $this->ruleId)
                    ->first();


        if(is_null($point))
            return true;

        $this->setPoint($point);

        return false;
    }
58771
public function getValues()
        {
            $values = $this->values;

            foreach ($this->criteria as $criteria) {
                foreach ($criteria->getValues() as $value) {
                    if (is_array($value)) {
                        foreach ($value as $single_value) {
                            $values[] = $single_value;
                        }
                    } else {
                        $values[] = $value;
                    }
                }
            }

            return $values;
        }
1239708
public function result(): array
    {
        $sql = trim($this->sql);
        if (!$sql) {
            return ['', '', []];
        }

        //如果不是以WHERE开头,则,加上
        if (stripos($sql, 'WHERE') !== 0) {
            $sql = ' HAVING ' . $sql;
        }

        // 处理Prepare
        $prepare = trim($this->prepare);
        if (stripos($prepare, 'WHERE') !== 0) {
            $prepare = ' HAVING ' . $prepare;
        }

        // 返回三项
        return [$sql, $prepare, $this->param];
    }
1248139
protected function getData()
    {
        if ( ! $this->fileOptions) {
            return $this->request->all();
        }

        $excepts = collect($this->fileOptions)->keyBy(function ($item) {
            $columns = explode('.', $item['column']);
            return count($columns) === 1 ? $columns[0] : $columns[1];
        })->keys()->all();
        return $this->request->except($excepts);
    }
740691
public function findAll()
	{
		if ( $this->timeout == 0 ) {
			return parent::findAll();
		}

		return $this->searchContext->waitFor($this->timeout, array($this, 'parent::findAll'));
	}
1243849
public function all()
    {
        $sql = 'SELECT * FROM ' . $this->table;

        $stat = $this->pdo->query($sql);

        return $stat->fetchAll(\PDO::FETCH_ASSOC);
    }
533193
protected function getValues()
    {
        $result = $this->values;

        if ($result === null && file_exists($this->getDir().'/'.$this->getLanguage().'.php')) {
            $result       = $this->values = include $this->getDir().'/'.$this->getLanguage().'.php';
        }

        return $result;
    }
280617
public function data()
    {
        return [
            'property'  => $this->property(),
            'table'     => $this->table(),
            'direction' => $this->direction(),
            'mode'      => $this->mode(),
            'values'    => $this->values(),
            'condition' => $this->condition(),
            'active'    => $this->active(),
            'name'      => $this->name(),
        ];
    }
670701
protected function getValues()
    {
        $uri    = uri();
        $params = $this->session->get($uri . '.' . get_called_class());
        if (is_null($params) or ! isset($params['column']) or ! $params['column'] == $this->column) {
            return [];
        }
        if (empty($params['value'])) {
            $params = $this->session->get($uri);
            unset($params[get_called_class()]);
            $this->session->put($uri, $params);
            $this->session->save();
        } else {
            return $params['value'];
        }

        return [];
    }
943099
public function get_all()
    {
        return $this->build($this->db->select('SELECT * FROM `' . $this->table_name . '` WHERE 1', [], $this->getCacheId('all')));
    }
43994
public function values()
	{
		return array(
			'name' => $this->name,
			'description' => $this->description,
			'level' => $this->level,
			'status' => $this->status,
			'currentValue' => $this->value,
		);
	}
492107
public function getAll()
    {
        $db = new DB();
        $result = $db->db()->select(['db_name'=>__config()->auth->db_name, 'table'=>__config()->auth->db_table]);
        $db->db()->close();

        return $result;
    }
248656
public function all()
    {
        $attributes = $this->attributes;

        return array_map(function ($item) {
            if (is_object($item) && get_class($item) === Generic::class) {
                $item = $item->all();
            }

            return $item;
        }, $attributes);
    }
1167986
public function
	GetData() {

		$Data = $this->Data;
		if(!is_array($Data)) $Data = [$Data];

		foreach($Data as $Key => $Val) {
			if(!$this->MountStart && !$this->MountEnd)
			$Data[$Key] = "%{$Val}%";

			elseif($this->MountStart && !$this->MountEnd)
			$Data[$Key] = "{$Val}%";

			elseif(!$this->MountStart && $this->MountEnd)
			$Data[$Key] = "%{$Val}";
		}

		return $Data;
	}
486288
public function get()
    {
        $parameters = [];
        foreach ($this->parameters as $parameter) {
            $parameters[] = $parameter->get();
        }

        return [
            'type' => 'new',
            'class' => $this->className,
            'parameters' => $parameters,
            'dynamic' => $this->dynamic,
            'file' => $this->file,
            'line' => $this->line,
            'char' => $this->char,
        ];
    }
886028
public function getParams() {
        $return       = $this->_params;
        $paramSources = $this->getParamSources();
        if (in_array('_GET', $paramSources)
            && isset($this->GET)
            && is_array($this->GET)
        ) {
            $return += $this->GET;
        }
        if (in_array('_POST', $paramSources)
            && isset($this->POST)
            && is_array($this->POST)
        ) {
            $return += $this->POST;
        }
        return $return;
    }
6810
public function headers()
    {
        if (function_exists('getallheaders')) {
            $headers = getallheaders();
            return empty($headers) ? array() : $headers;
        }

        $headers = array();

        foreach ($_SERVER as $name => $value) {
            if (substr($name, 0, 5) == 'HTTP_') {
                $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))));
                $headers[$key] = $value;
            }
        }

        return $headers;
    }