config = Dever::db('spider/project')->one($id); $this->check(); } public function get() { $this->setting(); return $this->config; } private function check() { if (!$this->config) { Dever::alert('项目未定义'); } if ($this->config['status'] != 1) { //Dever::alert('项目不是待机状态'); } } private function setting() { Dever::db('spider/project')->update(['status' => 2, 'where_id' => $this->config['id']]); $this->config['url'] = explode("\r\n", $this->config['site']); } }