|
...
|
...
|
@@ -282,7 +282,9 @@ class WebTraffic extends Command |
|
|
|
ProjectServer::useProject($project_id);
|
|
|
|
//已发布产品分类页面
|
|
|
|
$data['urls_cats'] = DB::connection('custom_mysql')->table('gl_product_category')
|
|
|
|
->where('project_id', $project_id)->where('status', Category::STATUS_ACTIVE)->pluck('route','id')->toArray();
|
|
|
|
->where('project_id', $project_id)->where('status', Category::STATUS_ACTIVE)
|
|
|
|
->whereNull('deleted_at')
|
|
|
|
->pluck('route','id')->toArray();
|
|
|
|
|
|
|
|
//已发布单页面
|
|
|
|
$data['urls_page'] = [];
|
|
...
|
...
|
@@ -291,7 +293,9 @@ class WebTraffic extends Command |
|
|
|
|
|
|
|
//已发布产品详情页
|
|
|
|
$data['urls_details'] = DB::connection('custom_mysql')->table('gl_product')
|
|
|
|
->where('project_id', $project_id)->where('status', Product::STATUS_ON)->pluck('route', 'id')->toArray();
|
|
|
|
->where('project_id', $project_id)->where('status', Product::STATUS_ON)
|
|
|
|
->whereNull('deleted_at')
|
|
|
|
->pluck('route', 'id')->toArray();
|
|
|
|
|
|
|
|
$data['urls_cats'] = array_merge($data['urls_cats'], $data['urls_page']);
|
|
|
|
if(empty($data['urls_cats'])){
|
...
|
...
|
|