Exemple #1
0
 public function find()
 {
     foreach (BuilderIndex::find()->where(['crawled' => 0])->all() as $item) {
         $this->urlStatus($item->url);
     }
     if (count(BuilderIndex::findAll(['crawled' => 0])) > 0) {
         $this->find();
     } else {
         $this->finish();
     }
 }