作者 zhl

删除聚合页链接

@@ -314,17 +314,17 @@ class PrivateController extends BaseController @@ -314,17 +314,17 @@ class PrivateController extends BaseController
314 $product = Product::where(['status' => Product::STATUS_ON])->where('created_at', '>=', $date)->pluck('route'); 314 $product = Product::where(['status' => Product::STATUS_ON])->where('created_at', '>=', $date)->pluck('route');
315 $news = News::where(['status' => News::STATUS_ONE])->where('release_at', '>', $date)->pluck('url'); 315 $news = News::where(['status' => News::STATUS_ONE])->where('release_at', '>', $date)->pluck('url');
316 $blog = Blog::where(['status' => Blog::STATUS_ONE])->where('release_at', '>', $date)->pluck('url'); 316 $blog = Blog::where(['status' => Blog::STATUS_ONE])->where('release_at', '>', $date)->pluck('url');
317 - $keyword = Keyword::where('created_at', '>', $date)->pluck('route'); 317 +// $keyword = Keyword::where('created_at', '>', $date)->pluck('route');
318 318
319 // 组装链接 319 // 组装链接
320 foreach ($product as $item) { 320 foreach ($product as $item) {
321 $url = 'https://' . $domain . '/' . $item; 321 $url = 'https://' . $domain . '/' . $item;
322 array_push($result, $url); 322 array_push($result, $url);
323 } 323 }
324 - foreach ($keyword as $item) {  
325 - $url = 'https://' . $domain . '/' . $item;  
326 - array_push($result, $url);  
327 - } 324 +// foreach ($keyword as $item) {
  325 +// $url = 'https://' . $domain . '/' . $item;
  326 +// array_push($result, $url);
  327 +// }
328 foreach ($news as $item) { 328 foreach ($news as $item) {
329 $url = 'https://' . $domain . '/news/' . $item; 329 $url = 'https://' . $domain . '/news/' . $item;
330 array_push($result, $url); 330 array_push($result, $url);