作者 lyh

gx白帽seo前后缀

@@ -429,11 +429,11 @@ class ProjectLogic extends BaseLogic @@ -429,11 +429,11 @@ class ProjectLogic extends BaseLogic
429 } 429 }
430 } 430 }
431 //聚合页评论为空时,生成评论 431 //聚合页评论为空时,生成评论
432 -// $keywordCommentModel = new AggregateKeywordComment();  
433 -// $commentNum = $keywordCommentModel->counts(['project_id'=>$param['id']]);  
434 -// if(empty($commentNum)){  
435 -// NoticeLog::createLog(NoticeLog::TYPE_INIT_KEYWORD_COMMON, ['project_id' => $this->param['project_id']]);  
436 -// } 432 + $keywordCommentModel = new AggregateKeywordComment();
  433 + $commentNum = $keywordCommentModel->counts(['project_id'=>$param['id']]);
  434 + if(empty($commentNum)){
  435 + NoticeLog::createLog(NoticeLog::TYPE_INIT_KEYWORD_COMMON, ['project_id' => $param['id']]);
  436 + }
437 } 437 }
438 if($param['type'] == Project::TYPE_FIVE){ 438 if($param['type'] == Project::TYPE_FIVE){
439 $param['extend_type'] = Project::TYPE_FIVE; 439 $param['extend_type'] = Project::TYPE_FIVE;