This commit is contained in:
toom1996
2025-07-30 14:04:08 +08:00
parent 60bc345279
commit 942892898e

View File

@ -96,7 +96,9 @@ class BaiduRecordCommand extends BaseSpider
(new Crawler($res))?->filter('.abs')?->each(function ($node) use ($domain, $item) { (new Crawler($res))?->filter('.abs')?->each(function ($node) use ($domain, $item) {
if (stripos($node->html(), $domain) !== false) { if (stripos($node->html(), $domain) !== false) {
$this->log->info('已收录'); $this->log->info('已收录');
AppNews::find($item->id)->update(['is_record' => 1]); $f = AppNews::find($item->id);
$f->is_record = 1;
$f->save();
} }
}); });
$this->log->info('处理结束..'); $this->log->info('处理结束..');