作者 lyh

gx白帽seo前后缀

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