update
This commit is contained in:
@ -96,7 +96,9 @@ class BaiduRecordCommand extends BaseSpider
|
||||
(new Crawler($res))?->filter('.abs')?->each(function ($node) use ($domain, $item) {
|
||||
if (stripos($node->html(), $domain) !== false) {
|
||||
$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('处理结束..');
|
||||
|
Reference in New Issue
Block a user