|
@@ -42,7 +42,7 @@ class Project
|
|
|
|
|
|
private function setting()
|
|
private function setting()
|
|
{
|
|
{
|
|
- $this->config['col'] = Dever::db('spider/col')->all(['project_id' => $this->config['id']]);
|
|
|
|
|
|
+ $this->config['col'] = Dever::db('spider/col')->state(['project_id' => $this->config['id']]);
|
|
$this->config['url'] = explode("\r\n", $this->config['site']);
|
|
$this->config['url'] = explode("\r\n", $this->config['site']);
|
|
$this->config['queue'] = new Queue();
|
|
$this->config['queue'] = new Queue();
|
|
array_walk($this->config['url'], [$this->config['queue'], 'push']);
|
|
array_walk($this->config['url'], [$this->config['queue'], 'push']);
|