diff --git a/app/Command/sitemap/Toutiao.php b/app/Command/sitemap/Toutiao.php index 4a4eda1..5db2b4c 100644 --- a/app/Command/sitemap/Toutiao.php +++ b/app/Command/sitemap/Toutiao.php @@ -53,7 +53,7 @@ class Toutiao extends BaseSpider $sitemapArray = []; - $query = AppNews::query()->select(['id', 'created_at'])->where('is_delete', 0)->get()->toArray(); + $query = AppNews::query()->select(['id', 'created_at'])->where('platform', $platform)->where('is_delete', 0)->get()->toArray(); foreach ($query as $item) { // $date = date('Y-m-d', $item['created_at']); $sitemapArray[] = <<