作者 赵彬吉

update

@@ -282,7 +282,9 @@ class WebTraffic extends Command @@ -282,7 +282,9 @@ class WebTraffic extends Command
282 ProjectServer::useProject($project_id); 282 ProjectServer::useProject($project_id);
283 //已发布产品分类页面 283 //已发布产品分类页面
284 $data['urls_cats'] = DB::connection('custom_mysql')->table('gl_product_category') 284 $data['urls_cats'] = DB::connection('custom_mysql')->table('gl_product_category')
285 - ->where('project_id', $project_id)->where('status', Category::STATUS_ACTIVE)->pluck('route','id')->toArray(); 285 + ->where('project_id', $project_id)->where('status', Category::STATUS_ACTIVE)
  286 + ->whereNull('deleted_at')
  287 + ->pluck('route','id')->toArray();
286 288
287 //已发布单页面 289 //已发布单页面
288 $data['urls_page'] = []; 290 $data['urls_page'] = [];
@@ -291,7 +293,9 @@ class WebTraffic extends Command @@ -291,7 +293,9 @@ class WebTraffic extends Command
291 293
292 //已发布产品详情页 294 //已发布产品详情页
293 $data['urls_details'] = DB::connection('custom_mysql')->table('gl_product') 295 $data['urls_details'] = DB::connection('custom_mysql')->table('gl_product')
294 - ->where('project_id', $project_id)->where('status', Product::STATUS_ON)->pluck('route', 'id')->toArray(); 296 + ->where('project_id', $project_id)->where('status', Product::STATUS_ON)
  297 + ->whereNull('deleted_at')
  298 + ->pluck('route', 'id')->toArray();
295 299
296 $data['urls_cats'] = array_merge($data['urls_cats'], $data['urls_page']); 300 $data['urls_cats'] = array_merge($data['urls_cats'], $data['urls_page']);
297 if(empty($data['urls_cats'])){ 301 if(empty($data['urls_cats'])){